Groups and captures
Groups organize subpatterns and captures expose matched spans, names, histories, and other result state to later constructs or host operations.
- Canonical category ID
groups-and-captures- Exact feature count
- 17
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.
capture17
- Balancing groupUses one capture stack to balance or subtract captures from another stack.
feature.balancing-group - Branch-reset groupingReuses capture numbers across alternatives occupying corresponding branch positions.
feature.branch-reset-group - Capture historyExposes every successful capture produced by a repeated or revisited group.
feature.capture-history - Capture name tableExposes the mapping from capture names to one or more numbers.
feature.capture-name-table - Capture participationDistinguishes whether a group participated in the successful match path.
feature.capture-participation - Capture spanReturns the governed start and end positions associated with a capture.
feature.capture-span - Capture stackRetains a stack or collection of successive captures for one group.
feature.capture-stack - Capture suppressionDisables capture allocation for otherwise capturing syntax under a mode or option.
feature.capture-suppression - Capture valueReturns the subject value associated with a capture.
feature.capture-value - Duplicate group namesAllows multiple capture definitions to share a name with governed lookup and reference rules.
feature.duplicate-group-name - Duplicate group numbersAllows distinct capture definitions to resolve to the same numeric identity.
feature.duplicate-group-number - Explicit capture numberAssigns a capture number explicitly instead of solely by opening-parenthesis order.
feature.explicit-capture-number - Group numbering policyDefines the ordinal allocation order for named, unnamed and branch-reset captures.
feature.group-numbering-policy - Last capture of a repetitionSelects the final successful capture value produced by a quantified group.
feature.last-capture-of-repetition - Named captureRecords a capturing subexpression under a stable name and its profile-defined number.
feature.named-capture - Numbered captureRecords the text and span matched by a parenthesized subexpression under an ordinal group number.
feature.numbered-capture - Unset versus empty captureDistinguishes nonparticipation from participation that consumed an empty string.
feature.unset-versus-empty-capture
Category provenance
All 17 entries above derive from the canonical Regex Conformance snapshot at reviewed revision 3285cc9fa8310df0af00fa50724d65531e0695d9. The bound semantic digest is e2c99c582ad9c8f2875060f9cb9d3ec0da8057f554ac09477f8e07b96da30b05.