Page 1 of 1

Removing numbers from front of titles

PostPosted: Mon Jun 15, 2020 10:26 pm
by subongo
Hello I have a problem removing numbers form the start of many files.

This is what the file names look like:-

14001848_Rubadub.mp3
83027855_Get To The Chopper.mp3
48805275927_Code Name (Dub).mp3

And this is the result I am after:-

Rubadub.mp3
Get To The Chopper.mp3
Code Name (Dub).mp3

Thanks for any help????

Re: Removing numbers from front of titles

PostPosted: Tue Jun 16, 2020 2:07 pm
by therube
If there are digits -only- at the start of the file name, then you could simply use, 5:Remove -> Digits.
(You'd have to additionally deal with underscore, like with 3:Replace.)


Otherwise:

1:Regex
Code: Select all
Match:  ^(\d+)_(.*)
Replace:  \2

Match one or more digits at the start of a file name, followed by an underscore, & ignore both.
Keep everything else.

Re: Removing numbers from front of titles

PostPosted: Tue Jun 16, 2020 6:04 pm
by subongo
????Many thanks. It took me a while to figure out the Remove Digits. I am used to the Match and Replace method but they both worked nicely :mrgreen: .