I develop an application which installs updates. These updates have a version id (this version id is created as a part of the application and the format is a fixed requirement) and I use a regex to parse/validate their id. Each group must be separated by a dot. The id must have 2 digits in the first group, one or two digits in the second group and the third group and at least one digit in the last group.
The regex I use is the following:
The regex works like expected but when I look at it I have a feeling telling me that I can make it better, smarter and and and and ...
Should I stay with this solution or how would you make it better?
The regex should work with the .NET-Framework Regex class.