I have a code replacement file with three columns of all players in an event that looks as follows:
01 Player A Country A
02 Player B Country A
03 Player C Country C
04 Player D Country D
05 Player E Country D
06 Player F Country E
..
This allows me to insert the player name using e.g. /01/. If I want to insert the player name combined with the country, I enter /01/ of team /01#2/. Now I would like to define additional code replacements as follows:
+01 /01/ of team /01#2/
+02 /04/ of team /02#2/
+03 /04/ of team /03#2/
+04 /04/ of team /04#2/
...
Especially if the list of players is long and changes over time and numbering is ad-hoc, this is tedious. I would love to be able to insert a generic rule (rather than a list of specific CRs, one per player) that could look like this:
+{var} /{var}/ of team /{var}#2/
where +{var} matches any string that starts with a +.
This would define a code replacement rule that considers {var} as a variable, i.e., that replaces for example the code /+123/ by /123/ of team /123#2/, {var} being assigned 123. This would allow me to enter the player name of player X by entering /X/ and the player name including its team affiliation by /+X/.
Note: I assume in the example / being the code replacement separator.