Code: Select all
the.subtitle.S03E04.ar.srt
the.subtitle.S03E04.en.srtCode: Select all
^(.*)(.{5})(\|.en|.ar..[^.]+)$|^([^.]*)([^.]{4})$ > $2$3$5Code: Select all
the.subtitle.S03E04.ar.srt
the.subtitle.S03E04.en.srtCode: Select all
^(.*)(.{5})(\|.en|.ar..[^.]+)$|^([^.]*)([^.]{4})$ > $2$3$5From the end of the name?i need remove characters form the end of name
Code: Select all
the.subtitle.S03E04.ar.srt
the.subtitle.S03E04.en.srtCode: Select all
S03E04.ar.srt
S03E04.en.srthighend wrote: From the end of the name?
So why do you remove chars from the beginning then?
Code: Select all
S03E04.ar.srt
S03E04.en.srtCode: Select all
^(.*?)([ES0-9]{6}.*)$ > $2Code: Select all
^(.{18})(.*(?=.en|.ar.))(.+) > $1$3What does that even mean?sometimes it maybe 1×1
Code: Select all
Bates Motel 02×10.720p.HDTV.2CH.x265.HEVC-PSA.mp4
Bates Motel 02×10.720p.HDTV.2CH.x265.HEVC-PSA.ar.srt
Bates Motel 02×10.720p.HDTV.2CH.x265.HEVC-PSA.en.srt
Code: Select all
Bates Motel 02×10.mp4
Bates Motel 02×10.ar.srt
Bates Motel 02×10.en.srtCode: Select all
^(.*?)([ES0-9]{6}|[0-9]+(?:x|\xD7)[0-9]+)(.*?)((?:\.ar|\.en)?\.[^.]+)$ > $1$2$4Your examples use an unicode char "×" (and not the latin "x"), hence this expression.(?:x|\xD7)
Code: Select all
Bates Motel 2×1.720p.HDTV.2CH.x265.HEVC-PSA.mp4
Bates Motel 2x0.720p.HDTV.2CH.x265.HEVC-PSA.en.srt
Bates Motel 02×10.720p.HDTV.2CH.x265.HEVC-PSA.mp4
Bates Motel 02×10.720p.HDTV.2CH.x265.HEVC-PSA.ar.srt
Bates Motel 02x10.720p.HDTV.2CH.x265.HEVC-PSA.en.srt
Bates Motel S02E10.720p.HDTV.2CH.x265.HEVC-PSA.mp4
Bates Motel S02E10.720p.HDTV.2CH.x265.HEVC-PSA.ar.srt
Bates Motel S02E10.720p.HDTV.2CH.x265.HEVC-PSA.en.srt
Code: Select all
Bates Motel 2×1.mp4
Bates Motel 2x0.en.srt
Bates Motel 02×10.mp4
Bates Motel 02×10.ar.srt
Bates Motel 02x10.en.srt
Bates Motel S02E10.mp4
Bates Motel S02E10.ar.srt
Bates Motel S02E10.en.srtCode: Select all
[ES0-9] (?:x|\xD7)Code: Select all
(?:x|\xD7)