Need to Move information in the Brackets

Bulk Rename Utility How-To's

Need to Move information in the Brackets

Postby heartradiousa » Sun Jul 19, 2020 6:26 pm

I need to move anyting in the Brackets ( ) and has the word Feat. to te end before ,mp3
currently it look like
Passion (Feat. Melodie Malone) - Forever.mp3
it needs to look like this with a space added before
Passion - Forever (Feat. Melodie Malone).mp3

what would the coding be for match & replace in the REGEx
I have about 50 replacements to do
heartradiousa
 
Posts: 19
Joined: Thu Mar 01, 2018 11:38 pm

Re: Need to Move information in the Brackets

Postby therube » Mon Jul 20, 2020 4:31 pm

1:RexEx
Code: Select all
Match:  (.*)(\s\([fF]eat..*?\))(.*)
Replace:  \1\3\2

Match anything, up to a
Space followed by left parenthesis, feat, then anything up to the right parenthesis (non-greedy)
Then everything else

Rearrange.

Passion (Feat. Melodie Malone) bla bla (xyz) - Forever.mp3
-> Passion bla bla (xyz) - Forever (Feat. Melodie Malone).mp3
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To