Regular Expressions 101

Library entries

US Telephone number

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Yashdeep Hinge - 6 years ago