RegexQuantifierSyntax Class

The base of the operator part of a quantified term.

public abstract class RegexQuantifierSyntax : RegexSyntaxNode
Inheritance
RegexSyntaxNode RegexQuantifierSyntax

Properties

NameDescription
MaxCountGets the largest number of repetitions the quantifier accepts, or null when it is unbounded.
MinCountGets the smallest number of repetitions the quantifier accepts.
ModeGets how the quantifier backtracks.
ModifierTokenGets the ? or + that follows the operator. It is absent when the quantifier is greedy.

MaxCount

Gets the largest number of repetitions the quantifier accepts, or null when it is unbounded.

public abstract int? MaxCount { get; }

Property value

int?

MinCount

Gets the smallest number of repetitions the quantifier accepts.

public abstract int MinCount { get; }

Property value

int

Gets how the quantifier backtracks.

public RegexQuantifierMode Mode { get; }

Property value

RegexQuantifierMode

ModifierToken

Gets the ? or + that follows the operator. It is absent when the quantifier is greedy.

public abstract SyntaxToken ModifierToken { get; }

Property value

SyntaxToken