[X] Quote in regular expression

Hello, i searched in the Forum but haven't find this bug.

I have version 2.80 of Mp3tag on Windows 10.

My goal was to replace rnb or r n b or r ' n b by RnB, so i used the following RegExp :
$regexp(%comment%,r[ ']{0,2}n[ ]?b,RnB)
But i have this error message :
[ SYNTAX ERROR IN FORMATTING STRING ]

I think this is really a bug because the search worked with my favorite editor (PSPad) with the same RegExp (r[ ']{0,2}n[ ]?:sunglasses:.

Thanks for your help guys

See the help on scripting:
http://help.mp3tag.de/main_scripting.html

So I would say that you have a

For example this Formatstring works ...
$regexp(%TEST%,'(rnb|r n b|r '''' n B)','RnB')

From:
TEST=rnb or r n b or r ' n b by RnB
To:
TEST=RnB or RnB or RnB by RnB

Note the usage of the special single quote character ', which is the string delimiter within Mp3tag Scripting Language, ...
to make it visible it has to be written twice.

DD.20161229.1945.CET

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.