Validate a regular expression string against what ECMA-262 can actually do.