Request: Option to disable global regular expressions


#1

Mp3tags has global regular expressions enabled by default (/g) I'm trying to run a regular expression ([.]) to remove the first period in a title, and replace it with a period and an added space..for example:

Symphony No.1 in C Major, Op.21 - I. Adagio Molto - Allegro Con Brio

However, this won't work because it will select both periods which is not intended. Can this be changed?


#2

Check out the help and the section about non-greedy repeats
http://help.mp3tag.de/options_format.html#regexp

$regexp('Symphony No.1 in C Major, Op.21 - I. Adagio Molto - Allegro Con Brio',(.*?\.)(.*),$1 $2)
leads to
Symphony No. 1 in C Major, Op.21 - I. Adagio Molto - Allegro Con Brio

This function already exists.


#3

I didn't know I could write expressions outside of the 'Replace with regular expression'. Thank you!


#4

You could use "Replace with regular expressions"
Search string: (.*?\.)(.*)
Replace string: $1 $2

I tested it in the function Convert>Tag-Tag which has a preview. You can use all the scripting functions in action of the type "Format value".