Figured out most of this Amazing Utility but now need help

A swapping-ground for Regular Expression syntax

Figured out most of this Amazing Utility but now need help

Postby klepp0906 » Wed Aug 16, 2017 3:28 pm

So far so good. relatively self explanatory and likely as simple as you can make a tool this powerful without limiting functionality.

Thanks to the dev!

So i'm trying to clean up a romset and im 95% of the way there. The final peice of the puzzle (i think/hope) is taking roms that have the name followed by a comma and a space and the word The.

for example "Wild Thornberrys, The - Animal Adventures"
I want it to read as "The Wild Thornberries - Animal Adventures"

Ive ran into a snag figuring this out as well as titles such as "Secret of Googol 2b, The - Reshaping Googol Under the Ocean" since it has the word "the" two times so any removal of "The" which i assume is half the equation removes both instances which I certainly dont want.

Lots of files named this way so ive been copying and pasting to a new location to muck around/practice but I just cant figure this one out ;p

Thanks for the time and help!
klepp0906
 
Posts: 2
Joined: Wed Aug 16, 2017 3:18 pm

Re: Figured out most of this Amazing Utility but now need help

Postby KenP » Fri Aug 18, 2017 10:32 am

This works with the examples you've given.

RegEx (1)
Match: (.*),\s(The) - (.*)
Replace: \2 \1 - \3
KenP
 
Posts: 196
Joined: Sat Jul 30, 2016 11:25 am

Re: Figured out most of this Amazing Utility but now need help

Postby klepp0906 » Sat Aug 19, 2017 3:12 am

thank you!!
klepp0906
 
Posts: 2
Joined: Wed Aug 16, 2017 3:18 pm


Return to Regular Expressions


cron