Add support for {a,b}, {a}, and {a,} in regexes.