Regular Expressions 101

Sponsors

Library entries

0
java

CDATA Matcher

Matches CDATA sections while disallowing nesting
Submitted by anonymous - 12 days ago
0
java

#结尾的电话匹配

#结尾的电话匹配
Submitted by anonymous - a month ago
0
java

IP Address

IP Address RegEx
Submitted by anonymous - a month ago
0
java

括号匹配

(\[]\])|(【】)|(())|(\(\))
Submitted by nasion - a month ago
0
java

DB

DB
Submitted by DB - a month ago
0
java

OS正则表达式

zzx
Submitted by zzx - a month ago
0
java

Verificar caracter repetido

Verificar caracter repetido
Submitted by anonymous - 3 months ago
0
java

ISO 3166-1 alpha-3

ISO 3166-1 alpha-3 countries for validation
Submitted by anonymous - 4 months 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