Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^([+]?\d{1,4}[-\s]?|)\d{3}[-\s]?\d{3}[-\s]?\d{4}$
/

Description

phone number with country prefix (+ or 00) and phone number with spaces and special characters allowed

Submitted by bux - 8 years ago