Regular Expressions 101

Library entries

RegEx Workshop

Vote

1

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Anthony Cooper - a month ago