in reply to Regex for matching dotted numbers
/^([1-9]\d+|[0-7])(\.\d{1,3}){0,3}$/
Assumptions:
- Version numbers greater than 0 (or 0.something) do not start with 0
- Digit groups are no more than 3 digits long
- Version numbers don't end with a period (.)