How to..........Cheekily cutting corners

Bulk Rename Utility How-To's

How to..........Cheekily cutting corners

Postby SquiddlyDiddly » Sat Jun 14, 2025 10:58 pm

I am sure this has been requested before but a quick look at the contents on the Forum didn't find anything,
I have converted all my physical discs (albums) to having each track with its individual MP3 file. So now I have hundreds of MP3 music files with filenames that were copied from the original track. So for example if converting a Beatles LP I might get 1). Help 2). I am a Believer etc or "Beatles,1, Help" "Beatles, 2."I am a believer" etc. Many formats have to be considered. My attempt at running Shell Script worked up to a point. So I would run the script to rename all "1.,2.,3.,, The I would have to run the amended script to rename all the 1), 2),3) files then the 01, 02, 03, files etc Very labour intensive. Is there a way of sorting my catalog into chunks that BRU can then deal with? Hope someone can help if they understand my ramblings. Thank You. Andy Kaye
SquiddlyDiddly
 
Posts: 2
Joined: Mon May 26, 2025 10:37 am

Re: How to..........Cheekily cutting corners

Postby TheGhost78 » Sun Jun 15, 2025 6:38 am

Can you give a handful of examples of the current names and what you want them to be renamed to?

Both RegEx (1) and Replace (3) can allow you to have more than one find and replace action at the same time, if there are different patterns that need to be found.
TheGhost78
 
Posts: 190
Joined: Fri Jul 19, 2024 11:25 am

Re: How to..........Cheekily cutting corners

Postby SquiddlyDiddly » Mon Jun 16, 2025 12:10 am

No matter what the filename what I need to strip out all the leading characters before the band name and end up with the track name.

So

01-Black Sabbath - Paranoid.mp3
01) DIO-Evil or Devine.mp3
01, Rammstein - Du hast.mp3
01 -Limp Biscuit - Rollin.mp3
(01) The Beatles - Help
01 Linkin Park - Numb.mp3

Become

Black Sabbath - Paranoid.mp3

DIO-Evil or Devine.mp3

Rammstein - Du hast.mp3

Limp Biscuit - Rollin.mp3

The Beatles - Help

Linkin Park - Numb.mp3

I hope that is clear

Andy Kaye
SquiddlyDiddly
 
Posts: 2
Joined: Mon May 26, 2025 10:37 am

Remove leading number-formats, except dates

Postby Luuk » Mon Jun 16, 2025 2:01 am

With Replace(3), could try a "Replace" like...
\regex\^\(?\d{1,3}[.), -]+(?!\d{1,2}[ ,-]|(19|20)\d\d)

01-Text1 -----------> Text1
01) Text2 ----------> Text2
01, Text3 ----------> Text3
01 -Text4 ----------> Text4
(01) Text5 ---------> Text5
01 Text6 -----------> Text6
02. Text7 ----------> Text7
02.Text8 -----------> Text8
03).,- Text9 -------> Text9
2025 - Text10 -------> (not renamed)
5-16-25 Text11 ------> (not renamed)
09 30, 2025 Text12 -> (not renamed)
123.mp3 -------------> (not renamed)

The red-parts inside of the "Replace" is to prevent removing any date-formats.
If you need to preserve any more date-formats, they could also be added.
Luuk
 
Posts: 815
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To