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
/
^\d+(\.|,)?\d*$
/
gm
Input 1
a1 a1.2 1.2b 1a.2b 1,2 123.455 12.45. 12.2.1 .1.2.2 123 1 2 2.3 2.3.4 2,3.4 2.,4 124 .4 0.4 ,4
Substitution
a1 a1.2 1.2b 1a.2b 1,2 123.455 12.45. 12.2.1 .1.2.2 123 1 2 2.3 2.3.4 2,3.4 2.,4 124 .4 0.4 ,4