Regular Expressions 101

Library entries

US Phone Number validation

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by anonymous - a year ago