I\'m trying to match the parts of a version number (Major.Minor.Build.Revision) with C# regular expressions. However, I\'m pretty new to writing Regex and even using Expresso is
Try something like this:
(?\d*)\.?(?\d*)?\.?(?\d*)?\.?(?\d*)?
I simply added some "zero or one" quantifiers to the capture groups and also to the dots just in case they are not there.