Regular Expressions 101

Sponsors

Library entries

1
pcre

3

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

Testing Header String Regex

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

vdbench error line

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

UK Postcode Finder

ID UK Postcodes (not fast but it does work!)
Submitted by anonymous - 7 years ago
1
javascript

filter DB Date in JS

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

URL does not start with correct name

APPFW BLock URL
Submitted by anonymous - 7 years ago
1
javascript

FreeCodeCamp RegEx1

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

Addresses for Dogs

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

VS2015 - Property to object

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

[A-Z][0-9][a-z]

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

sm subdomains

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

CS.com to C.org

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

TireLF

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

To block Invoice virus attachment

no description available
Submitted by Edgar Lozada - 7 years ago

url tokenizer

Vote

1

Regular Expression
pcre

/
^(?:(?'protocol'[a-z]{2,}(?=[:])):)?(?:\/\/)?(?:(?'subdomain'(?:[0-9a-z](?![\-\.]))+(?:[0-9a-z\-\.][0-9a-z]+)+?)\.(?'domain'(?:[0-9a-z](?![\-]))+(?:[0-9a-z\-][0-9a-z])\.(?'tld'[a-z]{2,}(?:\.[a-z]{2})?))|(?'ip'(?'segment'[01][0-9][0-9]|2[0-4][0-9]|25[0-5]|[0-9])\.(?&segment)\.(?&segment)\.(?&segment)))(?:\:(?'port'\d+))?(?'path'(?:\/[^\/\?]*?)*)?(?:\?(?'query'[^#]*))?(?:#!?(?'hash'.*))?$
/
gm

Description

Loading markdown...
Submitted by johnrcui - 7 years ago