Edit

Share via


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

Name Value Description
Unknown 0

An unknown regular expression parse error.

AlternationHasTooManyConditions 1

An alternation in a regular expression has too many conditions.

AlternationHasMalformedCondition 2

An alternation in a regular expression has a malformed condition.

InvalidUnicodePropertyEscape 3

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

MalformedUnicodePropertyEscape 4

A Unicode property escape is malformed.

UnrecognizedEscape 5

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

UnrecognizedControlCharacter 6

A control character in a regular expression is not recognized.

MissingControlCharacter 7

A control character in a regular expression is missing.

InsufficientOrInvalidHexDigits 8

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

QuantifierOrCaptureGroupOutOfRange 9

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

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.

MalformedNamedReference 12

A named reference in a regular expression is malformed.

UnescapedEndingBackslash 13

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

UnterminatedComment 14

A comment in a regular expression is not terminated.

InvalidGroupingConstruct 15

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

AlternationHasNamedCapture 16

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

AlternationHasComment 17

An alternation construct in a regular expression contains a comment.

AlternationHasMalformedReference 18

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

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.

UnterminatedBracket 22

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

ExclusionGroupNotLast 23

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

ReversedCharacterRange 24

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

ShorthandClassInCharacterRange 25

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

InsufficientClosingParentheses 26

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

ReversedQuantifierRange 27

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

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.

InsufficientOpeningParentheses 30

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

UnrecognizedUnicodeProperty 31

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

Remarks

This information is made available through Error.

Applies to