Reversing Surname and Forename in song titles

Bulk Rename Utility How-To's

Reversing Surname and Forename in song titles

Postby Steve Bannister » Wed Nov 23, 2022 4:49 pm

I have some large folders with a mixture of file name formats, and I would like them all to look the same. For example,

Beatles, The - Help (Group Name, The - Title)
Dave Clark Five - Glad All Over (Group Name - Title)
Beck, Jeff - Hi Ho Silver Lining (Artist Surname, Forename - Title)

I want to target ONLY the Artist names with the forename and surname reversed, as in 'Beck, Jeff', reversing surname and forename and removing the comma but not changing anything of the other two formats. I'm sure there is a RegEx fix that can target the ', ' part and work with it, but I don't want it to affect the formats like the first example that contain ', The'. In all instances, the ' - ' separator and the Title should remain in place. So, the above examples would then read,

Beatles, The - Help (Group Name, The - Title)
Dave Clark Five - Glad All Over (Group Name - Title)
Jeff Beck - Hi Ho Silver Lining (Artist Forename & Surname - Title)

Is this possible?
Steve Bannister
 
Posts: 6
Joined: Wed Jan 05, 2022 12:40 pm

Re: Reversing Surname and Forename in song titles

Postby Admin » Thu Nov 24, 2022 12:42 am

Hi, I think you could set up criteria to switch file names around the first comma, but then you would need to manually select the files you want to rename, as BRU would not know when to switch or not...
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: Reversing Surname and Forename in song titles

Postby Steve Bannister » Fri Dec 23, 2022 8:43 pm

Yes, I don't mind selecting manually if someone can help with the criteria.

Many thanks.
Steve Bannister
 
Posts: 6
Joined: Wed Jan 05, 2022 12:40 pm

Re: Reversing Surname and Forename in song titles (rename)

Postby Admin » Sat Dec 24, 2022 3:31 am

Rename

'FROM: Beck, Jeff - Hi Ho Silver Lining (Artist Surname, Forename - Title)
TO: Jeff Beck - Hi Ho Silver Lining (Artist Forename & Surname - Title)

We can do it with RegEx (1)
Enable Simple in RegEx (1)

We need to identify 3 parts of the file name: <text>, <text> - <text>

So

Match: %1, %2 - %3

And switch first and second part.

Replace: %2 %1 - %3

Preview to make sure is what you need.
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: Reversing Surname and Forename in song titles

Postby Steve Bannister » Tue Dec 27, 2022 9:06 pm

That works perfectly, thank you so much. I really appreciate your help.

Steve
Steve Bannister
 
Posts: 6
Joined: Wed Jan 05, 2022 12:40 pm


Return to How-To