Regular Expressions 101

Sponsors

Library entries

1
pcre

example regex

no description available
Submitted by anonymous - 8 years ago
-9
pcre

test

no description available
Submitted by test - 8 years ago
1
pcre

match up to -

no description available
Submitted by anonymous - 8 years ago
-22
python

1

no description available
Submitted by anonymous - 8 years ago
1
pcre

a^n b^n

no description available
Submitted by Oleksandr Sochka - 8 years ago
1
pcre

Divisible by 3 numbers

no description available
Submitted by Oleksandr Sochka - 8 years ago
1
pcre

Phone numbers matcher

no description available
Submitted by Oleksandr Sochka - 8 years ago
1
javascript

Singular or Plural

no description available
Submitted by Gavin Jackson - 8 years ago
-22
pcre

г.москва

no description available
Submitted by anonymous - 8 years ago
0
pcre

decimal numbers

match decimal numbers with sign
Submitted by mariano_dm - 8 years ago
-2
pcre

Filter IP from beggin of log

no description available
Submitted by W - 8 years ago
-1
javascript

email

no description available
Submitted by anonymous - 8 years ago
-2
javascript

email

no description available
Submitted by anonymous - 8 years 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