I'm trying to match (in Python) the show name and season/episode numbers from tv episode filenames in the format:
Show.One.S01E05.720p.HDTV.x264-CTU.mkv
and
Show.Two.S08E02.HDTV.XviD-LOL.avi
My regular expression:
(?P<show>[\w\s.,_-]+)\.[Ss]?(?P<season>[\d]{1,2})[XxEe]?(?P<episode>[\d]{2})
matches correctly on Show Two giving me Show Two, 08 and ...