using regex I want to move everything in file name between () to middle and drop the ()

38 Views Asked by At

I have thousands of MP3 and MP4 that I would like to standardize.

I am using Bulk Rename Utility

Example below

the desired lay out is Artist - Title

some of them are laid out as Artist - Title (Ft Artist)

I would like to move everything in the () to just after artist and drop the ()

Current

  • Lloyd - Get It Shawty (Ft Young Joc).mp3

Desired

  • Lloyd Ft Young Joc - Get It Shawty.mp3
1

There are 1 best solutions below

0
Qsebas On

you can use this regex:

([^-]*)\s-\s([^'(]*)\s\(([^\)]*)\)(.*)

and this substitution pattern:

$1 $3 - $2$4

you can test and see a preview in:

https://regex101.com/r/E7gDCE/1