#1 : 05/05-23 21:59 John Michel
Posts: 5
|
Hello !
I would to rename : "a.random.show.s01e01.1080p.web.h264-gropuname" to : "A Random Show S01E01 [1080p-WEB-DL-GROUPNAME]" Thanks. |
#2 : 06/05-23 15:46 David Lee
Posts: 1125
|
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.
|
#3 : 06/05-23 20:47 John Michel
Posts: 5
|
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. |
#4 : 07/05-23 08:47 David Lee
Posts: 1125
|
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 |
#5 : 07/05-23 08:47 David Lee
Posts: 1125
|
|
#6 : 07/05-23 10:31 John Michel
Posts: 5
|
Reply to #4:
Thanks you ! Works like a charm. |