Enum fancy_regex::Error [−][src]
pub enum Error {}Show 21 variants
ParseError, UnclosedOpenParen, InvalidRepeat, RecursionExceeded, LookBehindNotConst, TrailingBackslash, InvalidEscape(String), UnclosedUnicodeName, InvalidHex, InvalidCodepointValue, InvalidClass, UnknownFlag(String), NonUnicodeUnsupported, InvalidBackref, InnerError(Error), InvalidGroupName, InvalidGroupNameBackref(String), NamedBackrefOnly, TargetNotRepeatable, StackOverflow, BacktrackLimitExceeded, // some variants omitted
Expand description
An error for the result of compiling or running a regex.
Variants
General parsing error
Opening parenthesis without closing parenthesis, e.g. (a|b
Invalid repeat syntax
Pattern too deeply nested
Look-behind assertion without constant size
Backslash without following character
InvalidEscape(String)
Invalid escape
Unicode escape not closed
Invalid hex escape
Invalid codepoint for hex or unicode escape
Invalid character class
UnknownFlag(String)
Unknown group flag
Disabling Unicode not supported
Invalid back reference
InnerError(Error)
Regex crate error
Couldn’t parse group name
InvalidGroupNameBackref(String)
Invalid group id in escape sequence
Once named groups are used you cannot refer to groups by number
Quantifier on lookaround or other zero-width assertion
Max stack size exceeded for backtracking while executing regex.
Max limit for backtracking count exceeded while executing the regex.
Configure using
RegexBuilder::backtrack_limit
.