Regular Expressions 101

Sponsors

Library entries

US Phone number regex

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by anonymous - 7 months ago