RegexError

Error codes returned by regular expressions functions.

Since

2.14

Entries

Link copied to clipboard

Compilation of the regular expression failed.

Link copied to clipboard

Optimization of the regular expression failed.

Link copied to clipboard

Replacement failed due to an ill-formed replacement string.

Link copied to clipboard

The match process failed.

Link copied to clipboard

Internal error of the regular expression engine. Since 2.16

Link copied to clipboard

"\\" at end of pattern. Since 2.16

Link copied to clipboard

"\\c" at end of pattern. Since 2.16

Link copied to clipboard

Unrecognized character follows "\\". Since 2.16

Link copied to clipboard

Numbers out of order in "{}" quantifier. Since 2.16

Link copied to clipboard

Number too big in "{}" quantifier. Since 2.16

Link copied to clipboard

Missing terminating "]" for character class. Since 2.16

Link copied to clipboard

Invalid escape sequence in character class. Since 2.16

Link copied to clipboard

Range out of order in character class. Since 2.16

Link copied to clipboard

Nothing to repeat. Since 2.16

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Missing terminating ")" or ")" without opening "(". Since 2.16

Link copied to clipboard

Reference to non-existent subpattern. Since 2.16

Link copied to clipboard

Missing terminating ")" after comment. Since 2.16

Link copied to clipboard

Regular expression too large. Since 2.16

Link copied to clipboard

Failed to get memory. Since 2.16

Link copied to clipboard

Lookbehind assertion is not fixed length. Since 2.16

Link copied to clipboard

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

Link copied to clipboard

Conditional group contains more than two branches. Since 2.16

Link copied to clipboard

Assertion expected after "(?(". Since 2.16

Link copied to clipboard

Unknown POSIX class name. Since 2.16

Link copied to clipboard

POSIX collating elements are not supported. Since 2.16

Link copied to clipboard

Character value in "\\x{...}" sequence is too large. Since 2.16

Link copied to clipboard

Invalid condition "(?(0)". Since 2.16

Link copied to clipboard

\\C not allowed in lookbehind assertion. Since 2.16

Link copied to clipboard

Recursive call could loop indefinitely. Since 2.16

Link copied to clipboard

Missing terminator in subpattern name. Since 2.16

Link copied to clipboard

Two named subpatterns have the same name. Since 2.16

Link copied to clipboard

Malformed "\\P" or "\\p" sequence. Since 2.16

Link copied to clipboard

Unknown property name after "\\P" or "\\p". Since 2.16

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Octal value is greater than "\\377". Since 2.16

Link copied to clipboard

"DEFINE" group contains more than one branch. Since 2.16

Link copied to clipboard

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

Link copied to clipboard

Inconsistent newline options. Since 2.16

Link copied to clipboard

"\\g" is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number. Since: 2.16

Link copied to clipboard

relative reference must not be zero. Since: 2.34

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

Link copied to clipboard

unknown backtracing control verb. Since: 2.34

Link copied to clipboard

number is too big in escape sequence. Since: 2.34

Link copied to clipboard

Missing subpattern name. Since: 2.34

Link copied to clipboard

Missing digit. Since 2.34

Link copied to clipboard

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

Link copied to clipboard

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

the backtracing control verb requires an argument. Since: 2.34

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

too many forward references. Since: 2.34

Link copied to clipboard

the name is too long in "(*MARK)", "(*PRUNE)", "(*SKIP)", or "(*THEN)". Since: 2.34

Link copied to clipboard

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.