Help Moving This SubString

A swapping-ground for Regular Expression syntax

Help Moving This SubString

Postby Seasonz » Sun Dec 22, 2013 4:59 am

Hello guys, just started using Bulk Rename Utility and loving it so far. Im new to regex and even though I know the basics; Im having a hard time moving a substring to the end of the filename. Im trying to order a (Quite big) MP3 database.

The Filenames are of the type:

DMX Ft. Rakim, Shontelle & Aleks D. - Don't Call Me
Hordatoj Ft. Anita Tijoux, Juan Sativo & Panty - Ayer
Melanie Fiona Ft. J. Cole - This Time


I want the filenames to look like these:

DMX - Don't Call Me (Ft. Rakim, Shontelle & Aleks D.)
Hordatoj - Ayer (Ft. Anita Tijoux, Juan Sativo & Panty)
Melanie Fiona - This Time (Ft. J. Cole)



All I want is to wrap from the word "Ft." to the whitespace before the hyphen with parentheses and move all that string to the end of the file.

Would really appreciate your help since Im (Slowly) learning regex and I can't figure out how to do this.

Thanks in advance :D
Seasonz
 
Posts: 2
Joined: Sun Dec 22, 2013 4:46 am

Help Moving This SubString

Postby truth » Sun Dec 22, 2013 8:59 pm

Note this demands a space must precede Ft.
This adds another benefit, as it wont touch any previously renamed files
1Regex:
(.+) (Ft\..+)( - )(.+)
\1\3\4 (\2)
truth
 
Posts: 221
Joined: Tue Jun 25, 2013 3:39 am
Location: Earth, OrionArm, MilkyWay

Re: Help Moving This SubString

Postby Seasonz » Sun Dec 22, 2013 9:11 pm

Thank you truth! it worked like a charm!
Seasonz
 
Posts: 2
Joined: Sun Dec 22, 2013 4:46 am


Return to Regular Expressions