Move start of filename to end and enclose in brackets

Bulk Rename Utility How-To's

Move start of filename to end and enclose in brackets

Postby Sotmo » Thu Aug 05, 2021 4:11 pm

Ok so i have looked through various examples of this an just cannot apply any of them to what i need.

I have a bunch of movie files names in a folder named, YYYY - MovieName, I would like to move the YYYY to the end of the filename and enclose them in brackets but, also delete the " - " after the YYYY. In other words:

From 2005 - The Myth
To The Myth (2005)

Additionally, when this renaming is done (or before or during, if possible), I would like to create a folder the same as the new complete filename, The Myth (2005) and move the movie in there.

Thank You
Regards
Sotmo
 
Posts: 2
Joined: Thu Aug 05, 2021 11:17 am

Re: Move start of filename to end and enclose in brackets

Postby Luuk » Thu Aug 05, 2021 8:55 pm

First to put a checkmark inside of the menu "Renaming Options, Advanced Options, Allow Using '\' in Renaming Criteria".
Then inside for the RegEx(1) to put a 'Match' and 'Replace' like...
^(19\d\d|20\d\d) - (.+)
\2 (\1)\\2 (\1)

This how it likes to make the new full pathnames...
C:\CurrentFolder\2005 - The Myth.mp4 =====> C:\CurrentFolder\The Myth (2005)\The Myth (2005).mp4
Luuk
 
Posts: 691
Joined: Fri Feb 21, 2020 10:58 pm

Re: Move start of filename to end and enclose in brackets

Postby Sotmo » Thu Aug 05, 2021 9:38 pm

Wow, this worked perfectly!
Thank you so much for your assistance.

Regards
Sotmo
 
Posts: 2
Joined: Thu Aug 05, 2021 11:17 am


Return to How-To