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](([0-9]{0,2}(\.[0-9]{3})*)|[0-9]*)$
/
gm
Input 1
1
New
---- válidos 1 12 123 1.100 123.123 2.321.234.556.654 ---- válidos sem o ponto separando os milhares (caso seja aceito) 12345 1100 ---- inválidos 1.1 1.2345 0 012 ....