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
/
^(0([2-468-9]\d{7}|[5|7]\d{8}))$
/
Unit Tests
0509165456
→ regex does match
035353282
→ regex does match
00
→ regex does not match
000000000
→ regex does not match
0773507878
→ regex does match
509165456
→ regex does not match