Community Patterns

Community Library Entry

14

Regular Expression
Created·2015-08-11 17:07
Flavor·ECMAScript (JavaScript)

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

Description

Allows phone numbers with optional country code, optional special characters and whitespace

Submitted by Tlmader