Regular Expressions 101

Community Patterns

US Phone Number validation

0

Regular Expression
PCRE (PHP <7.3)

/
^(1\s?)?((\([0-9]{3}\))|[0-9]{3})[\s\-]?[\0-9]{3}[\s\-]?[0-9]{4}$
/
gm

Description

no description available

Submitted by anonymous - 3 years ago