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*(?:26|555))(?=(?:\D*\d){5}\D*$)[\d()-]{5,10}$
/
gm
Input 1
1
New
Valid inputs: (12345)-- ---12)567) 12333 -1-2--3-45 (()))12345 ((12345 (-)65768- (4)1-2-35 Invalid inputs: 26123--- (26)897--- -26333---- 26 26(((()) 26------ 26--345 26)88-76 267-9
Substitution
Valid inputs: (12345)-- ---12)567) 12333 -1-2--3-45 (()))12345 ((12345 (-)65768- (4)1-2-35 Invalid inputs: 26123--- (26)897--- -26333---- 26 26(((()) 26------ 26--345 26)88-76 267-9