Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Positive Numbers greater than 0 with leading zeroes.
Open Workspace
JavaScript
Match
Created 2014-10-17 05:57
2
Regular Expression
/
^
0
*?
[
1
-
9
]
\d
*
$
/
Description
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka