regular expressions

How can I make the name of the file that is:

The rolling stones__paint it black.mp3

"__" = "2 spaces"


THE ROLLING STONES__Paint It Black.mp3

The between the artist and the name of the song is separated by 2 spaces

$regexp($caps('The rolling stones paint it black'),'^(.+?)(\s\s)(.+?)$','\U$1\E$2$3') $regexp($caps(%_filename%),'^(.+?)(\s\s)(.+?)$','\U$1\E$2$3') From: 'The rolling stones paint it black' To : 'THE ROLLING STONES Paint It Black'


See also ...