Community Patterns

Community Library Entry

1

Regular Expression
Created·2023-09-17 15:17
Updated·2023-09-19 14:23
Flavor·PCRE2 (PHP)

/
(?<Fname>.*\.)(S(?<se>\d{1,2})E(?<ep>\d{2,3}).*|(?<season>S\d{1,2}-S\d{2,3}).*|(?<yr>\d{4}[^p]).*)
/
g
Open regex in editor

Description

This is my first attempt so umm ya ..

Grab Filename: Fname Season: se Episode: ep Year: yr

Submitted by TheMorgue