Regular Expressions 101

Sponsors

Library entries

0
pcre2

belcorp

test
Submitted by anonymous - 17 days ago
0
pcre2

C/F temp unit

me
Submitted by anonymous - 17 days ago
0
python

Postcode (UK)

Detects UK postcodes (minimal edge cases)
Submitted by anonymous - 19 days ago
0
python

PO Number

Detects specific prefixes followed by number series
Submitted by anonymous - 19 days ago
0
python

Credit Note

Detects specific word in a sentence
Submitted by anonymous - 19 days ago
0
pcre2

Postfix

Add DR to end of line
Submitted by anonymous - 19 days ago
0
python

dice thing

Stuff for a dnd thing
Submitted by Cata - 19 days ago
0
python

完形填空

完形填空
Submitted by anonymous - 20 days ago
0
python

恩更

非法发
Submitted by anonymous - 21 days ago
0
python

CPF|CNPJ

Match Brazilian documents
Submitted by Bacco - 21 days ago

GET formated URLs

Vote

1

Regular Expression
pcre

/
(?(DEFINE) (?<WebAddress> (?&Protocol){0,}(?&Host)(?:\:(?&Port)){0,1}(?&Path){0,1})(?=\s|$) (?<Protocol> \w{2,}\:\/\/) (?<Host> (?&NameParts)(?&Suffix)) (?<NameParts> (\w{2,}\.){1,}) (?<Suffix> (\w{2,})) (?<Port> (\d{1,5})) (?<Path> (\/\S{1,})) ) ((?&WebAddress))
/
xmg

Description

Loading markdown...
Submitted by rleonard - 6 years ago