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
Quiz_11_Validate_Floating_Point_Number
Open Workspace
PCRE2 (PHP)
Substitution
Created 2024-10-08 14:04
2
Regular Expression
/
^
[
-+
]
?
(
\d
+
[
,.
]
|
\d
*
[
.,
]
?
\d
+
)(
e
[
-+
]
?
\d
+
)?
$
/
i
Description
Check if a floating point number (e.g. 3.14159) is in a valid format.
Submitted by
Anonymous