Regular Expressions 101

Library entries

Phone Number

Vote

14

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Tlmader - 6 years ago