Regular Expressions 101

Library entries

Regular Expression For Phone Number Validation

Vote

-3

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Brian Jemilo II - 8 years ago