I think the best way is using split() function. Let’s say you have a character comp named”Character_1″, with all that expressions and controls inside it. Put your character on a scene comp and then you can write this code above all your linked properties :
nameSplit = thisComp.name.split("_");
characterNum = nameSplit[nameSplitLength -1];
selfComp = "Character_" + characterNum;
Then, you can use the selfComp variable to link the properties to the self comp:
masterPosition = comp(selfComp).layer("myLayer").transform.position;
At this point, you can setup one character and then duplicate it on the project, ensuring that the name changes from “Character_1” to “Character_2”, “Character_3” etc. Now you can duplicate your character layer in the main comp and alt+drag the correspondig character comp to his layer.