Add regular expression grammar

In addition to the BNF grammar, provide regular expressions for use in
tokenizing and validating SemVer strings.