Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^\(\d{3}\) \d{3}-\d{4}$
/

Description

format (xxx) xxx-xxxx reg- /^(\d{3}) \d{3}-\d{4}$/

Submitted by Sarath - 9 years ago