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