RegexError
Entries
"\\" at end of pattern. Since 2.16
"\\c" at end of pattern. Since 2.16
Unrecognized character follows "\\". Since 2.16
Numbers out of order in "{}" quantifier. Since 2.16
Number too big in "{}" quantifier. Since 2.16
Missing terminating "]" for character class. Since 2.16
Invalid escape sequence in character class. Since 2.16
Range out of order in character class. Since 2.16
Nothing to repeat. Since 2.16
Unrecognized character after "(?", "(?<" or "(?P". Since 2.16
POSIX named classes are supported only within a class. Since 2.16
Missing terminating ")" or ")" without opening "(". Since 2.16
Reference to non-existent subpattern. Since 2.16
Missing terminating ")" after comment. Since 2.16
Regular expression too large. Since 2.16
Failed to get memory. Since 2.16
Lookbehind assertion is not fixed length. Since 2.16
Malformed number or name after "(?(". Since 2.16
Conditional group contains more than two branches. Since 2.16
Assertion expected after "(?(". Since 2.16
Unknown POSIX class name. Since 2.16
POSIX collating elements are not supported. Since 2.16
Character value in "\\x{...}" sequence is too large. Since 2.16
Invalid condition "(?(0)". Since 2.16
\\C not allowed in lookbehind assertion. Since 2.16
Recursive call could loop indefinitely. Since 2.16
Missing terminator in subpattern name. Since 2.16
Two named subpatterns have the same name. Since 2.16
Malformed "\\P" or "\\p" sequence. Since 2.16
Unknown property name after "\\P" or "\\p". Since 2.16
Subpattern name is too long (maximum 32 characters). Since 2.16
Too many named subpatterns (maximum 10,000). Since 2.16
Octal value is greater than "\\377". Since 2.16
"DEFINE" group contains more than one branch. Since 2.16
Repeating a "DEFINE" group is not allowed. This error is never raised. Since: 2.16 Deprecated: 2.34
Inconsistent newline options. Since 2.16
"\\g" is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number. Since: 2.16
relative reference must not be zero. Since: 2.34
the backtracing control verb used does not allow an argument. Since: 2.34
unknown backtracing control verb. Since: 2.34
number is too big in escape sequence. Since: 2.34
Missing subpattern name. Since: 2.34
Missing digit. Since 2.34
In JavaScript compatibility mode, "[" is an invalid data character. Since: 2.34
different names for subpatterns of the same number are not allowed. Since: 2.34
the backtracing control verb requires an argument. Since: 2.34
"\\c" must be followed by an ASCII character. Since: 2.34
"\\k" is not followed by a braced, angle-bracketed, or quoted name. Since: 2.34
"\\N" is not supported in a class. Since: 2.34
too many forward references. Since: 2.34
the name is too long in "(*MARK)", "(*PRUNE)", "(*SKIP)", or "(*THEN)". Since: 2.34
the character value in the \\u sequence is too large. Since: 2.34
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.