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
/
^([1-9]\d{0,3}|1\d{4}|2[0-4]\d{3}|25000)$
/
gm
Input 1
1
New
Matches ------- 1 9 10 100 999 1000 9999 10000 20000 24999 25000 Doesn't match ------------- 0 01 00009 25001 99999
Extraction