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
/
^1\d{10}$|^(\d{3,4}[-\/]?)?\d{7,8}([-\/]\d{2,4})?$
/
gm
Input 1
New
1234567 12345678 01212345678 012-12345678 1234-1234567 1234-12345678 012/1234567 012/12345678 1234/1234567 1234/12345678 13585881145 012-1345678-1234
Substitution
1234567 12345678 01212345678 012-12345678 1234-1234567 1234-12345678 012/1234567 012/12345678 1234/1234567 1234/12345678 13585881145 012-1345678-1234