Move ", The" to beginning and delete the ", "

Advanced Renamer forum
#1 : 02/12-17 00:38
Jared Miller
Jared Miller
Posts: 2
I am trying to rename a list of files where some names have ", The" appended to the end of the filename instead of at the beginning.

Ex:
Hobbit, The - YadaYadaYada.etc
Prince and the Pauper, The - blahblahblahotherstuff, morestuff.etc

I'd like it to look like:
The Hobbit - YadaYadaYada.etc
The Prince and the Pauper - blahblahblahotherstuff, morestuff.etc

I've tried moving after the seperator ", " However, some files have some descriptors such as ", morestuff" which are separated by the ", " characters, and I've been unable to figure out a method which does not at times mess with these descriptors.

Does anyone know of a way to achieve this change?

Sorry if this has been solved before, but I've been unable to find an example which sorts this method out.


02/12-17 00:38
#2 : 02/12-17 20:27
Stefan
Stefan
Posts: 240
Reply to #1:

FROM:
Hobbit, The - YadaYadaYada.etc
Prince and the Pauper, The - blahblahblahotherstuff, morestuff.etc

TO:
The Hobbit - YadaYadaYada.etc
The Prince and the Pauper - blahblahblahotherstuff, morestuff.etc


USE:


https://www.advancedrenamer.com/user_guide/metho d_removepattern

Remove: , The

AND

https://www.advancedrenamer.com/user_guide/metho d_add

Add: The
Index: 1



- - -

OR

https://www.advancedrenamer.com/user_guide/metho d_replace

Replace: (.+), The (- .+)
With: The \1\2
[x] Use regular expressions



HTH?

----------
If this tool had saved you time, perhaps you want to donate an Dollar to Kim?
See http://www.advancedrenamer.com/download >>> [Donate] button.


02/12-17 20:27
#3 : 11/12-17 19:56
Jared Miller
Jared Miller
Posts: 2
Reply to #2:

Hey, the use of regular expressions did the trick. I had never used them, so I need to get familiar with the syntax, I suppose.

Thanks a bunch for the help!


11/12-17 19:56