Rename tv episode - regular expression
Hello !
I would to rename : "a.random.show.s01e01.1080p.web.h264-gropuname"
to : "A Random Show S01E01 [1080p-WEB-DL-GROUPNAME]"
Thanks.
I would to rename : "a.random.show.s01e01.1080p.web.h264-gropuname"
to : "A Random Show S01E01 [1080p-WEB-DL-GROUPNAME]"
Thanks.
In order to answer this question we need to know which elements of the filename are fixed and which can change from one file to another.
Reply to #2:
The next files will be like this : a.random.show.s01e02.1080p.web.h264-gropuname, a.random.show.s01e03.1080p.web.h264-gropuname . So the only change it will be in the numbers after s01e.
The next files will be like this : a.random.show.s01e02.1080p.web.h264-gropuname, a.random.show.s01e03.1080p.web.h264-gropuname . So the only change it will be in the numbers after s01e.
Replace: (.+)(s\d+e\d+)\.(\d+p)\.(.+)\..*(-.*)
with: \I1\U2 [\3-\U4-DL\U5]
Use regular expressions
This will leave the dots remaining in the first part of the filename.
Convert these to spaces using a second Replace method:
Replace "dot" with "space" NOT using regular expressions
with: \I1\U2 [\3-\U4-DL\U5]
Use regular expressions
This will leave the dots remaining in the first part of the filename.
Convert these to spaces using a second Replace method:
Replace "dot" with "space" NOT using regular expressions
Reply to #4:
Thanks you ! Works like a charm.
Thanks you ! Works like a charm.