Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?!0+$)[0-9]{1,10}$
/
gm
Input 1
1
New
0 1 000 12 123 1234 12345 123456 1234567 12345678 123456789 1234567890 12345678901
Substitution