Jeremy, Thank you for the update. We know that Ruby 2.5+ has fixed this issue, but we were hoping the fix could be backported. Do you know if there is any workaround to reliably get Regexp to throw those errors? Nobuyoshi, Thank...dlee (David Lee)
FYI, these errors are deterministically thrown in ruby versions 2.5+, albeit with a different error message: `unmatched range specifier in char-class`.dlee (David Lee)
When instantiating a Regexp, we only sometimes see `RegexpError: empty range in char class`. To reproduce: `100.times { Regexp.new("^([\\w'+-.%]+@[\\w-.]+\\.[A-Za-z]{2,25})(,[\\w+-.%]+@[\\w-.]+\\.[A-Za-z]{2,4}){0,4}$") }` usually do...dlee (David Lee)