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
Number matching RE
Open Workspace
JavaScript
Match
Created 2014-08-08 16:19
0
Regular Expression
/
^
[
+-
]
?
(
(
0
\.
\d
+
)
|
(
[
1
-
9
]
+
(
\d
?
\.
\d
+
)?
)
)
$
/
Description
Optional plus or minus sign. Leading zero required for decimal number less than zero.
Submitted by
Mario Diana