Regular Expressions 101

Community Patterns

123...6

Regular Expression For Phone Number Validation

-3

Regular Expression
ECMAScript (JavaScript)

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

Description

no description available

Submitted by Brian Jemilo II - 10 years ago