Regular Expressions 101

Community Patterns

1...56789...173

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
[\+]?\d{0,3}([(]?\d{3}[)]?[-.]?\d{3}[-.]?\d{2}[-.]?\d{2})
/
g

Description

Validate Phone number even if contain country code

Submitted by Jorge Cervantes - 9 years ago