I've got an action that replaces (featuring|feat|ft) with "Featuring:"
the part I'm having trouble with is the second step of this action, which is currently this: (.+)(\WFeaturing: (.+)\W).
so the first capture group is everything before (featuring), the second is "featuring" itself (including the parentheses), and the 3rd is a sub-group of group 2 that captures everything inside the parentheses
That only works if there are parentheses, How do I set it up to work when there aren't? Will I just have to have two scripts, or is there something like an if else loop like in C?
How do I use the "Replace matches with" section in the replace with regex action?
I've tried using: (%_TAG%,$1) featuring: (%composer%,$3) and many other variants but none of them work.
It's a bit hard to follow without before and after examples. I'm also wondering if there are parens that need to be escaped. Do you really need to be concerned with all that comes before and after the capture and replace? RegEx does not have to work on the entire string. I can't make any sense out of your last sentence.
In the twelve years I've been using Mp3tag, I've never used "Guess Values." I believe because it violates the action convention of TARGETFIELD from %sourcefield% and doesn't appear to be well documented. Does it just do nothing if the guessing pattern isn't found? Would the action be: