RegexParseError Enum

Definition

Specifies the detailed underlying reason why a RegexParseException is thrown when a regular expression contains a parsing error.

public enum class RegexParseError
public enum RegexParseError
type RegexParseError = 
Public Enum RegexParseError
Inheritance
RegexParseError

Fields

AlternationHasComment 17

An alternation construct in a regular expression contains a comment.

AlternationHasMalformedCondition 2

An alternation in a regular expression has a malformed condition.

AlternationHasMalformedReference 18

An alternation construct in a regular expression contains a malformed reference.

AlternationHasNamedCapture 16

An alternation construct in a regular expression uses a named capture.

AlternationHasTooManyConditions 1

An alternation in a regular expression has too many conditions.

AlternationHasUndefinedReference 19

An alternation construct in a regular expression contains an undefined reference.

CaptureGroupNameInvalid 20

The group name of a captured group in a regular expression is invalid.

CaptureGroupOfZero 21

A regular expression defines a numbered subexpression named zero.

ExclusionGroupNotLast 23

A character class in a regular expression with an exclusion group is not the last part of the character class.

InsufficientClosingParentheses 26

A regular expression has a non-escaped left parenthesis, or misses a closing right parenthesis.

InsufficientOpeningParentheses 30

A regular expression has a non-escaped right parenthesis, or misses an opening left parenthesis.

InsufficientOrInvalidHexDigits 8

A hexadecimal escape sequence in a regular expression does not have enough digits, or contains invalid digits.

InvalidGroupingConstruct 15

A grouping construct in a regular expression is invalid or malformed.

InvalidUnicodePropertyEscape 3

A Unicode property escape in a regular expression is invalid or unknown.

MalformedNamedReference 12

A named reference in a regular expression is malformed.

MalformedUnicodePropertyEscape 4

A Unicode property escape is malformed.

MissingControlCharacter 7

A control character in a regular expression is missing.

NestedQuantifiersNotParenthesized 28

Repeated quantifiers on another quantifier inside a regular expression are not grouped in parentheses.

QuantifierAfterNothing 29

A quantifier in a regular expression is in a position where it cannot quantify anything, like at the beginning of a regular expression or in a group.

QuantifierOrCaptureGroupOutOfRange 9

A captured group or a quantifier in a regular expression is not within range, that is, it is larger than MaxValue.

ReversedCharacterRange 24

A character class in a regular expression contains an inverse character range, like z-a instead of a-z.

ReversedQuantifierRange 27

A quantifier range in a regular expression is inverse, like {10,1} instead of (1,10}.

ShorthandClassInCharacterRange 25

A character-class in a regular expression contains a short-hand class that is not allowed inside a character class.

UndefinedNamedReference 10

A used named reference in a regular expression is not defined.

UndefinedNumberedReference 11

A used numbered reference in a regular expression is not defined.

UnescapedEndingBackslash 13

A regular expression ends with a non-escaped ending backslash.

Unknown 0

An unknown regular expression parse error.

UnrecognizedControlCharacter 6

A control character in a regular expression is not recognized.

UnrecognizedEscape 5

An escape character or sequence in a regular expression is invalid.

UnrecognizedUnicodeProperty 31

A unicode property in a regular expression is not recognized, or invalid.

UnterminatedBracket 22

A regular expression has a non-escaped left square bracket, or misses a closing right square bracket.

UnterminatedComment 14

A comment in a regular expression is not terminated.

Remarks

This information is made available through Error.

Applies to