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
/
foobar_(\d+\.?\d*\.?\d*)\s+
/
Unit Tests
foobar_55.1.1.1
2015/12/12
→ regex does not match
foobar_55_1_1
2015/12/12
→ regex does not match
foobar_55
1
2015/12/12
→ regex does match
foobar_55.1
2015/12/12
→ regex does match
foobar_55.0.0
2015/12/12
→ regex does match
foobar_55
2015/12/12
→ regex does match