Reverse Artist and Song Title

Bulk Rename Utility How-To's

Reverse Artist and Song Title

Postby DenKarr » Tue Jan 07, 2025 2:28 pm

Dear All,

I have about 1600 mp3 files with the below format:

Poker Face - Lady GaGa

I want to reverse artist and title so the result to be:
.................
Lady GaGa - Poker Face
............................
Is there any way to do this with Bulk Rename?
I am interested in batch renaming.

Thank you very much!
DenKarr
 
Posts: 4
Joined: Tue Jan 07, 2025 2:22 pm

Reverse names like "Text1 - Text2"

Postby Luuk » Tue Jan 07, 2025 5:55 pm

Greetings DenKarr.. With RegEx(1) the "Match" and "Replace" could be like...
^(?!.* - .* - .*)(.+?)[- ]*( - )[- ]*(.+)
\3\2\1

The negative-lookahead makes sure there's not too many " - ", so there's no confusion about where to separate.
The character-sets can remove any extra separators (like '-' or space) on either side of the only " - ".

Song-Title - Artist-Name -----> Artist-Name - Song-Title
Song-Title - - Artist-Name ---> Artist-Name - Song-Title
Artist-Name - Song-Title -----> Song-Title - Artist-Name
Text1 --- - --- Text2 ----------> Text2 - Text1
Song-Title - Text - Text ------> (not renamed)
Luuk
 
Posts: 803
Joined: Fri Feb 21, 2020 10:58 pm

Re: Reverse Artist and Song Title

Postby therube » Tue Jan 07, 2025 6:05 pm

If there are no "gotcha's" (like above), you can do something like:

1:RegEx, (enable) Simple
Code: Select all
Match:  %1 - %2
Replace:  %2 - %1
therube
 
Posts: 1427
Joined: Mon Jan 18, 2016 6:23 pm

Re: Reverse Artist and Song Title

Postby DenKarr » Tue Jan 07, 2025 6:32 pm

It worked like a charm!!!

Thank you very very much!!!! :P
DenKarr
 
Posts: 4
Joined: Tue Jan 07, 2025 2:22 pm

Re: Reverse Artist and Song Title

Postby DenKarr » Tue Jan 07, 2025 6:43 pm

One more last question please!!

Is there an option such as "Ignore" in the tool?
Because all my mp3 files have number before file name.
For example:

01) Lady GaGa - Poker Face
02) Green Day - Holiday
03) Sia - Chandelier
etc.

So when I set %1 - %2 and %2 - %1 the tool did this:

Poker Face - 01) Lady Gaga.
So I want to ignore the first 3 character and starts renaming after that.

Can I do it?

Thank you very much!!! :)
DenKarr
 
Posts: 4
Joined: Tue Jan 07, 2025 2:22 pm

Re: Reverse Artist and Song Title

Postby Admin » Tue Jan 07, 2025 10:22 pm

Use File Segment -> From 5 to only apply your renaming criteria from position 5 in the file name and ignoring the first 4 characters.
Admin
Site Admin
 
Posts: 2883
Joined: Tue Mar 08, 2005 8:39 pm

Re: Reverse Artist and Song Title

Postby DenKarr » Thu Jan 09, 2025 4:43 pm

Thank you very much!!! :)

Mission Accomplished! :P
DenKarr
 
Posts: 4
Joined: Tue Jan 07, 2025 2:22 pm


Return to How-To