Link to home
Start Free TrialLog in
Avatar of Rouchie
RouchieFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Build RegExp to change filenames

I have thousands of mp3 files bought from various places.  My folder file list looks something like this:

Mental Project - 6000 (Roman Gertz Shocked Remix).mp3
714225_-_Looks_Good_Original_Mix_456.mp3
01_-_Why_Not_(klang123ltd).mp3
12963_Throw_Your_Hands_Original_Mix.mp3

I have a batch rename EXE but it requires a RegExp to perform the renaming.  Therefore, can anyone provide an expression that does the following:

Replace _-_ with a single space character
Replace _ with a single space character
Replace - with a single space character
Remove any numeric prefix on the filename (but ignore numbers within the file name)

e.g. 714225_-_Looks_Good_Original_Mix_456.mp3 would become
Looks Good Original Mix 456.mp3
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rouchie

ASKER

Beautiful - thank you!