Regular Expressions 101

Sponsors

Library entries

0
pcre2

C/F temp unit

me
Submitted by anonymous - 11 days ago
0
python

Postcode (UK)

Detects UK postcodes (minimal edge cases)
Submitted by anonymous - 12 days ago
0
python

PO Number

Detects specific prefixes followed by number series
Submitted by anonymous - 12 days ago
0
python

Credit Note

Detects specific word in a sentence
Submitted by anonymous - 12 days ago
0
pcre2

Postfix

Add DR to end of line
Submitted by anonymous - 12 days ago
0
python

dice thing

Stuff for a dnd thing
Submitted by Cata - 12 days ago
0
python

完形填空

完形填空
Submitted by anonymous - 13 days ago
0
python

恩更

非法发
Submitted by anonymous - 14 days ago
0
python

CPF|CNPJ

Match Brazilian documents
Submitted by Bacco - 14 days ago
0
pcre

Time in hh:mm:ss

19h32min16s
Submitted by anonymous - 15 days ago

TV Series filename parsing

Vote

3

Regular Expression
pcre

/
^((?<ShowNameA>.*[^ (_.]) [ (_.]+ (?!720p|1080p|264|265) ( # Shows with preceding Year #(?<ShowYearA>\d{4}) ([ (_.]+ ( (?<ShowYearA>(?:19|20)\d{2}) ([ (_.]+ ( (?<SeasonA>\d{1,2})x(?<EpisodeA>\d{1,2}) |(?<SeasonB>[0-3]?[0-9])(?<EpisodeB>\d{2}) |S(?<SeasonC>\d{1,2})E(?<EpisodeC>\d{1,2}) ) )? | # Shows without preceding Year (?<!\d{4})( S(?<SeasonD>\d{1,2})E(?<EpisodeD>\d{1,2}) |(?<SeasonF>[0-3]?[0-9])(?<EpisodeF>\d{2}) |(?<SeasonE>\d{1,2})x(?<EpisodeE>\d{1,2})) ) |(?<ShowNameB>.+))
/
mgxi

Description

Loading markdown...
Submitted by anonymous - 6 years ago