Regular Expressions 101

Library entries

10 digit phone number

Vote

0

Regular Expression
javascript

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

Description

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