Class Quantifier
A quantified repetition: , +, ?, or {n,m}.
Greedy is true by default; setting it to false
enables non-greedy matching (the ??, ?, +? suffixes).
public record Quantifier : RuleContent, IEquatable<RuleContent>, IEquatable<Quantifier>
- Inheritance
-
Quantifier
- Implements
- Inherited Members
- Extension Methods
Constructors
Quantifier(RuleContent, int, int?, bool)
A quantified repetition: , +, ?, or {n,m}.
Greedy is true by default; setting it to false
enables non-greedy matching (the ??, ?, +? suffixes).
public Quantifier(RuleContent Inner, int Min, int? Max, bool Greedy = true)
Parameters
InnerRuleContentMinintMaxint?Greedybool
Properties
Greedy
public bool Greedy { get; init; }
Property Value
Inner
public RuleContent Inner { get; init; }
Property Value
Max
public int? Max { get; init; }
Property Value
- int?
Min
public int Min { get; init; }