Hey all,
Admittedly, I'm no Regex Grand Pooba, I only mess with them occasionally as needed, and I'm running into a fight with one at the moment, that maybe someone else already has more experience with, that could help out.
I'm trying to create a rename preset, that will find all sXXeXX (or eXXX), then replace that with s00eXX (or XXX) where XX is a number incremented by 1 each time, starting at a number that I give it. This is exclusively for renaming series' extras, for Plex, so the series number is always 00. (s00).
For example, I have these files highlighted:
Breaking Bad - S02E01 Deleted Scene - Loading His Gun - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E01 Extra - Inside Breaking Bad - [SD 360p x265 640x372] [AAC 2ch].m4v
Breaking Bad - S02E02 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
Breaking Bad - S02E03 Deleted Scene - Reflections - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E03 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
Breaking Bad - S02E04 Deleted Scene - Blueberry Muffins - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E04 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
Breaking Bad - S02E05 Extra - Inside Breaking Bad - [SD 360p x265 640x368] [AAC 2ch].m4v
Breaking Bad - S02E06 Deleted Scene - Walt's Return - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E06 Extra - Inside Breaking Bad - [SD 360p x265 640x368] [AAC 2ch].m4v
Breaking Bad - S02E07 Extra - Inside Breaking Bad - [SD 360p x265 640x368] [AAC 2ch].m4v
Breaking Bad - S02E08 Deleted Scene - The Yearbook - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E08 Extra - Inside Breaking Bad - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E09 Deleted Scene - Raincheck - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E09 Deleted Scene - Waiting For Results - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E09 Extra - Inside Breaking Bad - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E10 Deleted Scene - Internal Thoughts - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E10 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
Breaking Bad - S02E11 Deleted Scene - Baby-proofing - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E11 Deleted Scene - Walt's Demonstration - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E11 Deleted Scene - Welcome Holly - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E11 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
Breaking Bad - S02E12 Extra - Inside Breaking Bad - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S02E13 Deleted Scene - I'll Drive - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E13 Deleted Scene - Rescuing Jesse - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S02E13 Extra - Inside Breaking Bad - [SD 360p x265 640x366] [AAC 2ch].m4v
And upon doing a rename, I enter, say, 45, and the result would look like this:
Breaking Bad - S00E45 Deleted Scene - Loading His Gun - [SD 360p x265 640x364] [AAC 2ch].m4v
Breaking Bad - S00E46 Extra - Inside Breaking Bad - [SD 360p x265 640x372] [AAC 2ch].m4v
Breaking Bad - S00E47 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
Breaking Bad - S00E48 Deleted Scene - Reflections - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S00E49 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
Breaking Bad - S00E50 Deleted Scene - Blueberry Muffins - [SD 360p x265 640x366] [AAC 2ch].m4v
Breaking Bad - S00E51 Extra - Inside Breaking Bad - [SD 360p x265 640x370] [AAC 2ch].m4v
etc. ...
The episode number basically needs to just go as high of a number as needed, because with lots of seasons' extras, they can go into the hundreds sometimes.
I've come up with this regex so far, for spotting the sXXeXX:
[sS](\d\d?)[eE](\d\d?)
But from there on out I'm stuck. Having a bit of a hard time doing the replace.
Anyone have any ideas?
TIA!