Rename TV episodes

Advanced Renamer forum
#1 : 21/07-19 00:08
Chris
Chris
Posts: 2
Hi
How do I rename tv episodes to remove all text after Season and episode text

eg
TVSHow.S01E05.extrastuff I dont want.MKV
to
TVSHow.S01E05.MKV

Thanks




21/07-19 00:08
#2 : 21/07-19 07:19
David Lee
David Lee
Posts: 1125
Remove pattern: .*\..*\K\..*
Use regular expressions


21/07-19 07:19
#3 : 22/07-19 00:16
Chris
Chris
Posts: 2
Reply to #2:
Sorry I do not know enough about regex. I do not understand the answer you gave?


22/07-19 00:16
#4 : 22/07-19 02:06
David Lee
David Lee
Posts: 1125
Reply to #3:
Try reading the User Guide: www.advancedrenamer.com/user_guide/gettingstarted

Remove pattern method...
Pattern = ".*\..*\K\..*"
Use regular expressions = "Select"


22/07-19 02:06
#5 : 22/07-19 09:18
Will Robinson
Will Robinson
Posts: 5
Reply to #1:
Hi Chris,

Add Method: Replace
Text to be replaced:
(.* S\d?\dE\d?\d).*
Replace with:
$1
Occurrence: All
Case sensitive: No
Use regular expressions: Yes
Apply to: Name only

It's complete enough to work whether the 'S' or 'E' is followed by one or two numbers.

Info:
( - Start copying text
.* - mark all text up to...
S - Must include 'S'
\d? - One or less digits
\d - Must be a digit
E\d?\d - As above
).* - finish copying group (and mark remaining text)
$1 is the copied text from above that we replace with.

Hope this helps.


22/07-19 09:18