Regular Expressions 101

Tv Series name extractor

Open Workspace
  • Python
  • Match
1

Regular Expression

r"
^(.+?)[-. ]{0,3}s?(\d?\d)[ex](\d\d)[-. ]{0,3}(.*?)[-. ]?(?:(?=pulcione|eng|ita|\w+Mux|\w+dl|\d+p|XviD|NovaRip).+)?\.([\w]{2,3})$
"
img

Description

Extract from a tv series file the name of the series, the season, episode and the title.

Submitted by dshinigami