Creates a new Quantifier.
The interval defining how many times to match
The matching strategy (default: Greedy)
StaticfromCreates a quantifier from min/max values.
Minimum occurrences
Optionalmax: numberMaximum occurrences (undefined for unbounded)
The matching strategy
StaticexactlyCreates a quantifier for exactly n occurrences.
StaticatCreates a quantifier for at least n occurrences.
StaticatCreates a quantifier for at most n occurrences.
StaticbetweenCreates a quantifier for between min and max occurrences.
StaticzeroCreates a quantifier for zero or more occurrences (*).
StaticoneCreates a quantifier for one or more occurrences (+).
StaticzeroCreates a quantifier for zero or one occurrence (?).
Returns the minimum number of occurrences.
Returns the maximum number of occurrences, or undefined if unbounded.
Returns the interval.
Returns the reluctance (matching strategy).
Checks if the given count is within the quantifier's range.
Checks if the quantifier is unbounded (no maximum).
Converts to an Interval (discarding reluctance).
Defines how many times a pattern may or must match, with an interval and a reluctance.
Example