Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-04-14 19:52
Flavor·ECMAScript (JavaScript)

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

Description

Basic Phone Number Matching

Submitted by Anthony Cooper