Help renaming tv shows from 1x01 to s01e01 using RegExp?

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

Help renaming tv shows from 1x01 to s01e01 using RegExp?

Postby Dave001 » Thu Sep 04, 2014 2:35 pm

I've just found this great program, I think it's going to save me a lot of time.

I need to rename some files from
tvshow - 1x01.avi to tvshow - s01e01.avi
tvshow - 2x01.avi to tvshow - s02e01.avi

I've been replacing 1x with s01e and 2x with s02e which is working fine, but I'm guessing it would be much quicker to do it using RegExP, but can't seem to get my head around the formulas.

Any help would be appreciated.

Edit: changed subject as asked.
Last edited by Dave001 on Fri Sep 05, 2014 1:57 am, edited 1 time in total.
Dave001
 
Posts: 3
Joined: Thu Sep 04, 2014 1:54 pm

Format part of file name: 1x01.avi to s01e01.avi

Postby Stefan » Thu Sep 04, 2014 6:32 pm

Hi and welcome Dave.

Please add an better thread subject so others can find the answers too if they are on the search.
And users can decide by the subject if the want to read a thread or not.

"Newbie, needs a little help." is not quit useful subject line.


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

Re: Help renaming tv shows from 1x01 to s01e01 using RegExp?

Postby Stefan » Fri Sep 05, 2014 7:45 am

FROM:
tvshow - 1x01.avi
tvshow - 2x01.avi

TO:
tvshow - s01e01.avi
tvshow - s02e01.avi

Rule:
match: (anything - )as$1 (digit)as$2 x(digitdigit)as$3
replace: $1-s-zero-$2-e-$3

Use:
RegEx(1)
Find: ^(.+ - )(\d)x(\d\d)$
Repl: \1s0\2e\3
[  ]Inc. Ext.



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

Re: Help renaming tv shows from 1x01 to s01e01 using RegExp?

Postby Dave001 » Fri Sep 05, 2014 1:23 pm

Thank you Stefan, worked perfectly.
Dave001
 
Posts: 3
Joined: Thu Sep 04, 2014 1:54 pm

Re: Help renaming tv shows from 1x01 to s01e01 using RegExp?

Postby missionman » Thu Nov 27, 2014 8:43 pm

Stefan wrote:FROM:
Use:
RegEx(1)
Find: ^(.+ - )(\d)x(\d\d)$
Repl: \1s0\2e\3
[ ]Inc. Ext.



HTH?


This is most likely a very silly noob question but where are you placing this code? I have a long series of movie files to which I always want to apply the same Replace/With rules. This looks like it could be my solution. Is this within a text file and then you import the text file into Bulk Rename Utility?
missionman
 
Posts: 1
Joined: Thu Nov 27, 2014 8:29 pm

Re: Help renaming tv shows from 1x01 to s01e01 using RegExp?

Postby Admin » Tue Dec 02, 2014 2:03 am

Hi, in RegEx(1) which is in the BRU main screen. thanks
Admin
Site Admin
 
Posts: 2351
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support