Regex that parses a version number including prerelease information and captures Major, Minor, Build, Revision, Prerelease and Prerelease version.
Major is mandatory - Minor, Build and Revision can be omitted.
The whole Prelease part is optional - it can match any text value followed by a pre-release version separated from the info with either a . (dot) or a - (dash).