I am trying to create a new tag PERFORMERINST from existing tags PERFORMER and INSTRUMENT. The existing tags may have multiple values (separated by semi-colons). I want PERFORMERINST to look like "Performer1 (Instrument1); Performer2 (Instrument2); etc".
I can do this for two performers by first creating PERFORMERINST as "Performer1; Performer2 (Instrument1; Instrument2)" using a Format Value action, then applying the reg exp:
replacing values with:
$1 ($3); $2 ($4)
I can't see a way of doing it with an indeterminate number of performers. If I split the fields and then use Format Value, it only operates on the first instance of each tag. Replace with Reg Exp works on all instances of multiple tag values, but can't reference other tags. I've tried $meta_sep as well, but with no luck.