RegexError
Description:
[ CCode ( has_type_id = false ) ]
[ Version ( since = "2.14" ) ]
public errordomain RegexError
Error codes returned by regular expressions functions.
Content:
Error codes:
- ASSERTION_EXPECTED - Assertion
expected after `(?(`.
-
BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN - The backtracing control verb used does not allow an
argument.
- BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED
- The backtracing control verb requires an argument.
- CHARACTER_VALUE_TOO_LARGE -
The character value in the `\u` sequence is too large.
- COMPILE - Compilation of the regular
expression failed.
- DEFINE_REPETION - Repeating a
`DEFINE` group is not allowed.
- DUPLICATE_SUBPATTERN_NAME -
Two named subpatterns have the same name.
- EXPRESSION_TOO_LARGE - Regular
expression too large.
- EXTRA_SUBPATTERN_NAME -
different names for subpatterns of the same number are not allowed.
- HEX_CODE_TOO_LARGE - Character
value in `\x{...}` sequence is too large.
- INCONSISTENT_NEWLINE_OPTIONS -
Inconsistent newline options.
- INEXISTENT_SUBPATTERN_REFERENCE -
Reference to non-existent subpattern.
- INFINITE_LOOP - Recursive call could
loop indefinitely.
- INTERNAL - Internal error of the regular
expression engine.
- INVALID_CONDITION - Invalid
condition `(?(0)`.
- INVALID_CONTROL_CHAR - `\c`
must be followed by an ASCII character.
- INVALID_DATA_CHARACTER - In
JavaScript compatibility mode, `[` is an invalid data character.
- INVALID_ESCAPE_IN_CHARACTER_CLASS -
Invalid escape sequence in character class.
- INVALID_OCTAL_VALUE - Octal
value is greater than `\377`.
- INVALID_RELATIVE_REFERENCE -
Relative reference must not be zero.
- MALFORMED_CONDITION - Malformed
number or name after `(?(`.
- MALFORMED_PROPERTY - Malformed
`\P` or `\p` sequence.
- MATCH - The match process failed.
- MEMORY_ERROR - Failed to get memory.
- MISSING_BACK_REFERENCE -
`\g` is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number.
- MISSING_CONTROL_CHAR - `\c` at
end of pattern.
- MISSING_DIGIT - Missing digit.
- MISSING_NAME - `\k` is not followed by
a braced, angle-bracketed, or quoted name.
- MISSING_SUBPATTERN_NAME -
Missing subpattern name.
- MISSING_SUBPATTERN_NAME_TERMINATOR -
Missing terminator in subpattern name.
- NAME_TOO_LONG - The name is too long
in `(*MARK)`, `(*PRUNE)`, `(*SKIP)`, or `(*THEN)`.
- NOTHING_TO_REPEAT - Nothing to
repeat.
- NOT_SUPPORTED_IN_CLASS -
`\N` is not supported in a class.
- NUMBER_TOO_BIG - Number is too big
in escape sequence.
- OPTIMIZE - Optimization of the regular
expression failed.
- POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED -
POSIX collating elements are not supported.
- POSIX_NAMED_CLASS_OUTSIDE_CLASS -
POSIX named classes are supported only within a class.
- QUANTIFIERS_OUT_OF_ORDER -
Numbers out of order in `{}` quantifier.
- QUANTIFIER_TOO_BIG - Number too
big in `{}` quantifier.
- RANGE_OUT_OF_ORDER - Range out
of order in character class.
- REPLACE - Replacement failed due to an
ill-formed replacement string.
- SINGLE_BYTE_MATCH_IN_LOOKBEHIND -
`\C` not allowed in lookbehind assertion.
- STRAY_BACKSLASH - `\` at end of
pattern.
- SUBPATTERN_NAME_TOO_LONG -
Subpattern name is too long (maximum 32 characters).
- TOO_MANY_BRANCHES_IN_DEFINE -
`DEFINE` group contains more than one branch.
- TOO_MANY_CONDITIONAL_BRANCHES -
Conditional group contains more than two branches.
- TOO_MANY_FORWARD_REFERENCES -
Too many forward references.
- TOO_MANY_SUBPATTERNS - Too
many named subpatterns (maximum 10,000).
- UNKNOWN_BACKTRACKING_CONTROL_VERB -
Unknown backtracing control verb.
- UNKNOWN_POSIX_CLASS_NAME -
Unknown POSIX class name.
- UNKNOWN_PROPERTY - Unknown
property name after `\P` or `\p`.
- UNMATCHED_PARENTHESIS -
Missing terminating `)` or `)` without opening `(`.
- UNRECOGNIZED_CHARACTER -
Unrecognized character after `(?`, `(?<` or `(?P`.
- UNRECOGNIZED_ESCAPE -
Unrecognized character follows `\`.
- UNTERMINATED_CHARACTER_CLASS -
Missing terminating `]` for character class.
- UNTERMINATED_COMMENT - Missing
terminating `)` after comment.
- VARIABLE_LENGTH_LOOKBEHIND -
Lookbehind assertion is not fixed length.
Static methods: