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

Phone number

4

Regular Expression
PCRE (PHP <7.3)

/
^((((\+[\d\-.]{1,5})?[ \-.]?\d{3})|(\+[\d\-.]{1,5})?[ \-.]?\((\d{3}\)))?[ \-.]?\d{3}[ \-.]?\d{4}\s?(e?x?t?\.?\s?\d{1,7})?)?$
/
i

Description

Loading markdown...
Submitted by Mark Landry - 8 years ago