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-9]?)$)(?:([0-9]*)(?:0\N*(?=\n\2[1-9])|1\N*(?=\n\2[2-9])|2\N*(?=\n\2[3-9])|3\N*(?=\n\2[4-9])|4\N*(?=\n\2[5-9])|5\N*(?=\n\2[6-9])|6\N*(?=\n\2[7-9])|7\N*(?=\n\2[89])|8\N*(?=\n\2[9]))|(?=([0-9](?:\n|(?-1))[0-9])[0-9]))
/
gm
Unit Tests
There are no unit tests, click
here
to add some.