Unfortunately four groups is not going to help, it should match anthing from 1.2 to 1.2.3.4.5.6 etc, or anything follows this structure.
To look for a substring matching [\d+\.]+ is also not an option, as there may be other matches in the string, like a simple number.
In reply to Re^2: What's wrong with this regex
by bgu
in thread What's wrong with this regex
by bgu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |