Regular Expressions 101

Sponsors

Library entries

0
pcre2

Drealth

just a normal text to the drealth emojis
Submitted by NobreHD - 7 days ago
0
javascript

Mez regex #3

This is the #3 regex used in Mez
Submitted by anonymous - 8 days ago
0
javascript

Mez regex #1

This is the #1 regex used in Mez
Submitted by anonymous - 8 days ago
0
pcre2

find between 2 strings

find between 2 strings
Submitted by anonymous - 9 days ago
0
pcre

find between

find between
Submitted by anonymous - 9 days ago
0
python

Url handling

Simple regex to split url
Submitted by Hangfish - 9 days ago
0
pcre2

Jerem

To match specific name based on season code
Submitted by anonymous - 10 days ago
0
pcre2

.csv data conversion for a test case

from "['a']" to "[""a""]"
Submitted by anonymous - 11 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