Page 1 of 1

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

PostPosted: Thu Sep 04, 2014 2:35 pm
by Dave001
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.

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

PostPosted: Thu Sep 04, 2014 6:32 pm
by Stefan
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.


 

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

PostPosted: Fri Sep 05, 2014 7:45 am
by Stefan
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?

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

PostPosted: Fri Sep 05, 2014 1:23 pm
by Dave001
Thank you Stefan, worked perfectly.

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

PostPosted: Thu Nov 27, 2014 8:43 pm
by missionman
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?

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

PostPosted: Tue Dec 02, 2014 2:03 am
by Admin
Hi, in RegEx(1) which is in the BRU main screen. thanks