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+[1-9])0\d{5}$
/
gm
Input 1
1
New
000123 002535 000000 2654 123456 0123456 000021
Extraction
000123 002535 000000 2654 123456 0123456 000021