Regular Expressions 101

Library entries

US Telephone Number validation

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Erik @raxsonic - 2 months ago