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
/
\b(\d{7}(?:\d{3,19})?)\b
/
g
Input 1
New
1234567 1234567890 12 123 1234 123456 12345678 L123456789
Substitution
1234567 1234567890 12 123 1234 123456 12345678 L123456789