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+)*(?!\S)(?!.*\d)
/
gm
Input 1
New
1 Match 1.1 Match 45.67.21234.3 Match 1 Does not match1 12. Does not match 123
Extraction
1 Match 1.1 Match 45.67.21234.3 Match 1 Does not match1 12. Does not match 123