Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
\+(\(?\d+\)?)(\d+|-?| ?)?(\d+|(\(\d+\)))( ?-?\d+)
/
gi

Description

I have +919535872103 adf I have +91-9535872103 adf I have +91(953)5872103 adf I have +91-(953)5872103 adf I have +91-(953) 5872103 adf I have +91 (953) 5872103 adf I have +91-(953)-5872103 adf I have +91(953)-5872103 adf I have +91-95358-72103 adf I have +(91)-95358-72103 adf

Submitted by anonymous - 8 years ago