Regular Expressions 101

Library entries

Us phone regex

Vote

0

Regular Expression
javascript

/
^\+?(?:1(\s|-|\.)?)?(\d{3}\1?\d{3}\1?\d{4})$
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago