Maybe someone could help me with this:

I have a string such as `"1.something"`, `"1.0.something"` or `1.0.0.something` 

The question is how can I check that there is no more dot in *something* section? 

Thank you.