### Enumeration

# GLib RegexError

since: 2.14

#### Declaration

    error-domain GLib.RegexError

#### Description

Error codes returned by regular expressions functions.

Available since: 2.14

#### Members

`G_REGEX_ERROR_COMPILE`

  Compilation of the regular expression failed.

  - Value: `0`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_OPTIMIZE`

  Optimization of the regular expression failed.

  - Value: `1`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_REPLACE`

  Replacement failed due to an ill-formed replacement string.

  - Value: `2`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MATCH`

  The match process failed.

  - Value: `3`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INTERNAL`

  Internal error of the regular expression engine. Since 2.16

  - Value: `4`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_STRAY_BACKSLASH`

  “" at end of pattern. Since 2.16

  - Value: `101`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MISSING_CONTROL_CHAR`

  “\c” at end of pattern. Since 2.16

  - Value: `102`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNRECOGNIZED_ESCAPE`

  Unrecognized character follows “". Since 2.16

  - Value: `103`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER`

  Numbers out of order in “{}” quantifier. Since 2.16

  - Value: `104`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_QUANTIFIER_TOO_BIG`

  Number too big in “{}” quantifier. Since 2.16

  - Value: `105`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS`

  Missing terminating “]” for character class. Since 2.16

  - Value: `106`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS`

  Invalid escape sequence in character class. Since 2.16

  - Value: `107`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_RANGE_OUT_OF_ORDER`

  Range out of order in character class. Since 2.16

  - Value: `108`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_NOTHING_TO_REPEAT`

  Nothing to repeat. Since 2.16

  - Value: `109`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNRECOGNIZED_CHARACTER`

  Unrecognized character after “(?”, “(?<” or “(?P”. Since 2.16

  - Value: `112`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS`

  POSIX named classes are supported only within a class. Since 2.16

  - Value: `113`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNMATCHED_PARENTHESIS`

  Missing terminating “)” or “)” without opening “(“. Since 2.16

  - Value: `114`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE`

  Reference to non-existent subpattern. Since 2.16

  - Value: `115`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNTERMINATED_COMMENT`

  Missing terminating “)” after comment. Since 2.16

  - Value: `118`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_EXPRESSION_TOO_LARGE`

  Regular expression too large. Since 2.16

  - Value: `120`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MEMORY_ERROR`

  Failed to get memory. Since 2.16

  - Value: `121`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND`

  Lookbehind assertion is not fixed length. Since 2.16

  - Value: `125`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MALFORMED_CONDITION`

  Malformed number or name after “(?(“. Since 2.16

  - Value: `126`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES`

  Conditional group contains more than two branches. Since 2.16

  - Value: `127`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_ASSERTION_EXPECTED`

  Assertion expected after “(?(“. Since 2.16

  - Value: `128`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME`

  Unknown POSIX class name. Since 2.16

  - Value: `130`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED`

  POSIX collating elements are not supported. Since 2.16

  - Value: `131`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_HEX_CODE_TOO_LARGE`

  Character value in “\x{…}” sequence is too large. Since 2.16

  - Value: `134`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INVALID_CONDITION`

  Invalid condition “(?(0)”. Since 2.16

  - Value: `135`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND`

  \C not allowed in lookbehind assertion. Since 2.16

  - Value: `136`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INFINITE_LOOP`

  Recursive call could loop indefinitely. Since 2.16

  - Value: `140`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR`

  Missing terminator in subpattern name. Since 2.16

  - Value: `142`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME`

  Two named subpatterns have the same name. Since 2.16

  - Value: `143`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MALFORMED_PROPERTY`

  Malformed “\P” or “\p” sequence. Since 2.16

  - Value: `146`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNKNOWN_PROPERTY`

  Unknown property name after “\P” or “\p”. Since 2.16

  - Value: `147`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG`

  Subpattern name is too long (maximum 32 characters). Since 2.16

  - Value: `148`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_TOO_MANY_SUBPATTERNS`

  Too many named subpatterns (maximum 10,000). Since 2.16

  - Value: `149`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INVALID_OCTAL_VALUE`

  Octal value is greater than “\377”. Since 2.16

  - Value: `151`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE`

  “DEFINE” group contains more than one branch. Since 2.16

  - Value: `154`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_DEFINE_REPETION`

  Repeating a “DEFINE” group is not allowed. This error is never raised. Since: 2.16 Deprecated: 2.34

  - Value: `155`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS`

  Inconsistent newline options. Since 2.16

  - Value: `156`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_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

  - Value: `157`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE`

  Relative reference must not be zero. Since: 2.34

  - Value: `158`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN`

  The backtracing control verb used does not allow an argument. Since: 2.34

  - Value: `159`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB`

  Unknown backtracing control verb. Since: 2.34

  - Value: `160`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_NUMBER_TOO_BIG`

  Number is too big in escape sequence. Since: 2.34

  - Value: `161`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MISSING_SUBPATTERN_NAME`

  Missing subpattern name. Since: 2.34

  - Value: `162`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MISSING_DIGIT`

  Missing digit. Since 2.34

  - Value: `163`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INVALID_DATA_CHARACTER`

  In JavaScript compatibility mode, “[” is an invalid data character. Since: 2.34

  - Value: `164`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME`

  Different names for subpatterns of the same number are not allowed. Since: 2.34

  - Value: `165`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED`

  The backtracing control verb requires an argument. Since: 2.34

  - Value: `166`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_INVALID_CONTROL_CHAR`

  “\c” must be followed by an ASCII character. Since: 2.34

  - Value: `168`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_MISSING_NAME`

  “\k” is not followed by a braced, angle-bracketed, or quoted name. Since: 2.34

  - Value: `169`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS`

  “\N” is not supported in a class. Since: 2.34

  - Value: `171`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES`

  Too many forward references. Since: 2.34

  - Value: `172`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_NAME_TOO_LONG`

  The name is too long in “(MARK)”, “(PRUNE)”, “(SKIP)”, or “(THEN)”. Since: 2.34

  - Value: `175`
  - Nickname: `None`
  - Available since: 2.14
`G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE`

  The character value in the \u sequence is too large. Since: 2.34

  - Value: `176`
  - Nickname: `None`
  - Available since: 2.14