Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-04-26 13:56
Flavor·ECMAScript (JavaScript)

/
^\(\d{3}\)\s?\d{3}\-\d{4}$
/
m
Open regex in editor

Description

Allows a phone number in the following format: (123) 123-1234 The space is optional

Submitted by Tom G.