pub type RegexError = Error;
An error that occurred during parsing or compiling a regular expression.
enum RegexError { Syntax(String), CompiledTooBig(usize), }
A syntax error.
The compiled program exceeded the set size limit. The argument is the size limit imposed.