Greetings. I’m experimenting with hoped-for improvements to some custom action groups I have which involve regular expressions, and I have one particular action in a group that I’d basically like to comment out — put the entire existing regex search expression into a (?#)
comment in order to disable it from doing anything when the action group is run, at least temporarily, until I’ve verified that my changes to other actions in the group are doing what I expect. My current (working) action is this:
Action: Replace with regular expressions
Field: COMPOSERSORT
Regular expression: ^(.+?) \[music\]; (.+?) \[lyrics\]'$'
Replace matches with: \1, \2
I tried changing the regular expression to (?#^(.+?) \[music\]; (.+?) \[lyrics\]'$')
, but when I click on the dialog’s OK button, MP3Tag displays the following message:
Regular expression: (?#^(.+?) \[music\]; (.+?) \[lyrics\]$)
Regular expression
Found a closing ) with no corresponding opening parenthesis.
The error occurred while parsing the regular expression
fragment: '[lyrics\]$>>>HERE>>>)'.
I know there are other things I can do to get around that problem (make a copy of the entire action group and delete that action from the copy, etc.), but anybody know of a reason why commenting out the whole line should not work? (I’ve verified that (?#)
comments do work, when I’m not trying to use it on the whole line.)