Regular Expressions 101

Community Patterns

TV series season and episode names

4

Regular Expression
PCRE (PHP <7.3)

/
(.*?)[.\s][sS](\d{1,2})[eE](\d{1,3}).*
/

Description

This regex matches against season and series names

Submitted by mikey - 9 years ago