Quantification and match selection
Quantification controls repetition, while selection rules decide which viable start, length, and alternative become the reported match.
- Canonical category ID
quantification-and-match-selection- Exact feature count
- 20
Conceptual organization
The groupings below use the corpus’s feature-class field to make the category easier to scan. They do not change canonical category membership.
quantifier20
- All match lengths at one startReturns every match length beginning at the selected start position.
feature.all-match-lengths-at-start - Atomic groupingCommits the successful internal path of a grouped subpattern against later backtracking.
feature.atomic-group - Automatic possessificationTransforms provably non-backtrackable repeats into possessive behavior during compilation.
feature.automatic-possessification - Bounded interval quantifierRepeats an operand within inclusive lower and upper bounds.
feature.bounded-quantifier - DFA greediness insensitivityTreats greedy and lazy quantifiers equivalently when enumerating all paths.
feature.dfa-greediness-insensitivity - Exact-count quantifierRepeats an operand exactly a specified number of times.
feature.exact-quantifier - Greedy quantifier preferencePrefers a larger repetition count subject to overall matching policy.
feature.greedy-preference - Lazy quantifier preferencePrefers a smaller repetition count subject to overall matching policy.
feature.lazy-preference - Leftmost-first match selectionChooses the earliest start and then the first successful backtracking path.
feature.leftmost-first-match - POSIX leftmost-longest selectionChooses the earliest start and longest whole match with ordered longest submatches.
feature.leftmost-longest-match - Lower-bounded quantifierRepeats an operand at least a specified number of times with no finite upper bound.
feature.lower-bounded-quantifier - Nested quantifier validityDefines whether adjacent or nested quantifier tokens are rejected, literalized or interpreted.
feature.nested-quantifier-validity - One-or-more quantifierRepeats an operand one or more times.
feature.one-or-more-quantifier - Optional quantifierRepeats an operand zero or one time.
feature.optional-quantifier - Ordered alternationPrefers the first alternative that permits overall success.
feature.ordered-alternation - Possessive quantifierCommits the initially selected repetition count against later backtracking.
feature.possessive-quantifier - Quantified empty operandDefines progress, capture and termination behavior when a repeated operand can match empty.
feature.quantified-empty-operand - Shortest match at one startReturns the shortest of the matches beginning at the selected start position.
feature.shortest-match-at-start - Upper-bounded quantifierRepeats an operand from zero through a specified upper bound.
feature.upper-bounded-quantifier - Zero-or-more quantifierRepeats an operand any nonnegative number of times.
feature.zero-or-more-quantifier
Category provenance
All 20 entries above derive from the canonical Regex Conformance snapshot at reviewed revision 3285cc9fa8310df0af00fa50724d65531e0695d9. The bound semantic digest is e2c99c582ad9c8f2875060f9cb9d3ec0da8057f554ac09477f8e07b96da30b05.