Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?=(?:[^\d\n]*\d){1,15}[])]?$)(?:[+]?\d++|[(][+]?\d++[)]|[[][+]?\d++[]])(?:[ .-]?+(?:\d\d++|[(]\d\d++[)]|[[]\d\d++[]]))*+$
/
gm
Input 1
1
New
Should match: (+91) 9864081806 (+91)9864081806 (+91)(98640)81806 +91.98640.81806 [+91]09864081806 +91.986.408.1806 +91-986-408-1806 (+91) 123456789 99999999999 (9999)999 123 +123456789012345 +91(123) +1 12 34 56 78 Should not match: +1234567890123456 )+91( 9864081806 +91(123)( +91(123] +91+123+123 +1 2 3 4 5 6 7 8 9 0
Substitution
Should match: (+91) 9864081806 (+91)9864081806 (+91)(98640)81806 +91.98640.81806 [+91]09864081806 +91.986.408.1806 +91-986-408-1806 (+91) 123456789 99999999999 (9999)999 123 +123456789012345 +91(123) +1 12 34 56 78 Should not match: +1234567890123456 )+91( 9864081806 +91(123)( +91(123] +91+123+123 +1 2 3 4 5 6 7 8 9 0