Regular Expressions 101

Library entries

Basic Phone Number Matching

Vote

1

Regular Expression
javascript

/
^(?:\+1)?\(?([2-9]{0,1}[0-9]{2})\)?[. -]?([0-9]{3})[.-]?([0-9]{4})$
/
mg

Description

Loading markdown...
Submitted by Anthony Cooper - 4 months ago