\d+(\.\d+)+
\d+ : one or more digits
\. : one point
(\.\d+)+ : one or more occurrences of dot digits
I will find
2.5 3.4.567 3.4.567.001
But you will not find
12 3. .23
If you want to exclude decimal numbers such as 2.5 and expect the version number to be at least 3 parts, you can use a quantifier like this
\d+(\.\d+){2,}
source share