Regular Expressions 101

Community Patterns

0

Test Function Block

PCRE2 (PHP >=7.3)
Test
Submitted by anonymous - a year ago
0

Pan Number

PCRE2 (PHP >=7.3)
Pan Number
Submitted by anonymous - a year ago
0

GSTN

PCRE2 (PHP >=7.3)
Goods & Service Tax Numebr
Submitted by anonymous - a year ago
0

Money format

PCRE2 (PHP >=7.3)
Any money format
Submitted by anonymous - a year ago

URL infos

1

Regular Expression
PCRE (PHP <7.3)

/
(?<Address>(?<Protocol>https?:\/\/)?(?<Subdomain>\w*\.)?(?<Domain>(?:[a-z0-9\-]{2,})\.(?:[^\s\/\.]{2,}))(?<Path>\/[^\s\?]*)?(?<Params>(?:\?|\#)[^\s\/\?\:]*)?)
/
gi

Description

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