Regular Expressions 101

Library entries

Phone Number

Vote

0

Regular Expression
javascript

/
^\+?1?\W*([2-9]{3})\W*([2-9]{3})[\s.-]*(\d{4})\s*$
/
gm

Description

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