Removing numbers from front of titles

Bulk Rename Utility How-To's

Removing numbers from front of titles

Postby chrob61 » Mon Apr 06, 2020 1:04 am

Hello-

I have several song files that look something like this:

10 Crocodile Rock

I've got about 500 files like this. I only want it to be Crocodile Rock

I think I want to choose the files, then go to the "remove (5)" table. Is that right? What selection would I make- remove the first 2 digits?

Thank you
chrob61
 
Posts: 2
Joined: Mon Apr 06, 2020 1:00 am

Re: Removing numbers from front of titles

Postby therube » Mon Apr 06, 2020 1:16 pm

Depending on your file set, that may work fine.
If there is always a space after the first two digits, you may want to change to First: 3.


For a somewhat more complicated set of file names:

1:RegEx
Code: Select all
Match:  ^(\d\d[\s-_])(.*)
Replace:  \2


Match files that start with 2 digits, followed by either a space, a -, or a _, then ignore that part.

Code: Select all
1300.rtf   |1300.rtf
06 - Angry Chair.mp3   |- Angry Chair.mp3
05 - Down In A Hole.mp3   |- Down In A Hole.mp3
19-2 S04E01 - Der falsche Schuldige.mkv   |2 S04E01 - Der falsche Schuldige.mkv
2307.Winters.Dream.(43.2016.1080p).mkv   |2307.Winters.Dream.(43.2016.1080p).mkv
01-01-2017 De Sandwich.mp3   |01-2017 De Sandwich.mp3

(I've place a "bar" | before the start of the renamed file name for readability.)
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Removing numbers from front of titles

Postby chrob61 » Mon Apr 06, 2020 1:53 pm

Thank you therube-

I just noticed that the top of the screen shows a preview of what the change will be!
chrob61
 
Posts: 2
Joined: Mon Apr 06, 2020 1:00 am

Re: Removing numbers from front of titles

Postby subongo » Sun Jun 14, 2020 1:47 pm

Hello I have a similar problem removing numbers form the start of many file.
I thought his code would help but I got no joy.
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
subongo
 
Posts: 8
Joined: Thu Jan 25, 2018 6:56 pm

Re: Removing numbers from front of titles

Postby therube » Tue Jun 16, 2020 2:09 pm

(Duplicated question [from subongo]. Answered here, viewtopic.php?f=12&t=4941.)
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To