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
(?\d*)\.(?\d*)(\.(?\d*)(\.(?\d*))?)?
Makes the third and fourth parts optional.