Replace blanks with underscores

Hi guys,

I am not really familiar with regular expressions and I need someones help in this case.

Folder: The Beach Boys - Super Album
Filename: The Beach Boys - First Track.mp3

Output should be
Folder: The_Beach_Boys_-Super_Album
Filename: 01-The_Beach_Boys

I can achieve most of it with this Rename Tag to Filename line


But I need help with the "blank -> underscore" replacement which should apply to the complete string.

Thanks in advance.

See section 'Replace' on


Thanks very perfectly

$replace(%artist%-%album%\%track%-%artist%-%title%, ,_)