Regular Expressions 101

Sponsors

Library entries

3
python

phone

matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by miqui - 7 years ago
6
pcre

Extract style

no description available
Submitted by anonymous - 7 years ago
1
python

States

States (US) 2 char format, matches: Ga or GA
Submitted by miqui - 7 years ago
2
pcre

Dim name

Gets all variable names
Submitted by Tyrone Moodley - 7 years ago
1
pcre

Quote Parsing

Parses quotes and can be escaped
Submitted by Vihan B. - 7 years ago
1
pcre

aa

aaa
Submitted by aaa - 7 years ago
1
javascript

Check if number is a float

no description available
Submitted by @hiaru - 7 years ago

split URL into location-resource-params

Vote

3

Regular Expression
pcre

/
(?'location'.+)(?:\/(?'resource'[\w\-\._]+\.js))(?:\?(?'params'.+))?
/
gm

Description

Loading markdown...
Submitted by cebence - 8 years ago