Renaming Folders & Files with ", The"

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Renaming Folders & Files with ", The"

Postby jlongiaru » Wed Sep 05, 2012 11:24 pm

I apologize in advance if this question has already been asked, I tried searching a dozen times, but the word 'the' is too common. Beginning and End didn't help either.

I have a few hundred files in folders (same name) that are setup as "The Title" and others that are setup as "Other Title, The". I'd like to rename all of them so that they are the same - and I don't really care which direction they go in. I have a feeling that moving the The to the end would be the easiest. I imagine that I need to match the first 4 characters to be "The ", replace them with nothing, then add the suffix of ", The", but when I tried it didn't work at all.

Any help with this?

Thanks very much.
jlongiaru
 
Posts: 1
Joined: Wed Sep 05, 2012 11:19 pm

Re: Renaming Folders & Files with ", The"

Postby Stefan » Thu Sep 06, 2012 9:39 am

moving the The to the end would be the easiest.


FROM:
The Title.ext
Other Title, The.ext

TO:
Title, The.ext
Other Title, The.ext

USE:
RegEx(1)
Match: ^The (.*)
Replac: \1, The
[  ] Inc. Ext.





Code: Select all
The Example is here 2         Example is here 2, The
The Example is here           Example is here, The
The Example The is here       Example The is here, The
The The Example The is here   The Example The is here, The
TheExample is here The         TheExample is here The
TheExample is here, The       TheExample is here, The
TheExample is here            TheExample is here

Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to BRU Support