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