Delete up to the TITLE

A swapping-ground for Regular Expression syntax

Delete up to the TITLE

Postby dheian » Sat Feb 29, 2020 9:35 pm

Have a bunch of video files where the episode name was placed before the title. E.g.:

Fun with Regex Title S01E01.mp4

I'm better at drinking coffee than mastering regex so I looked at stackoverflow and thought this would work:

/.+?(?=Title)/

but Bulk Rename says there are no selected items that need renaming.

How do I strip everything before Title?

Thanks!
dheian
 
Posts: 1
Joined: Sat Feb 29, 2020 9:21 pm

Re: Delete up to the TITLE

Postby RegexNinja » Mon Mar 02, 2020 2:23 am

This might be easier to answer with more examples.. Here's something to expirament with, and the results underneath:

Regex Match/Replace:
^.*? (Title.*)$
\1
Fun with Regex Title S01E01 ---> Title S01E01

Regex Match/Replace:
^(.*?) Title(.*)$
\1\2
Fun with Regex Title S01E01 --> Fun with Regex S01E01
RegexNinja
 
Posts: 134
Joined: Fri Feb 21, 2020 5:26 pm


Return to Regular Expressions