Backreferences, recursion and conditionals
These constructs reuse captured text or subpatterns and choose behavior from capture, assertion, or recursive state.
- Canonical category ID
backreferences-recursion-and-conditionals- Exact feature count
- 19
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.
recursive18
- Assertion conditionalSelects a branch according to the result of a lookaround assertion.
feature.assertion-conditional - Atomic recursionPrevents re-entry into a completed recursive or subroutine call.
feature.atomic-recursion - Capture-participation conditionalSelects a branch according to whether a named or numbered capture participated.
feature.capture-conditional - Definition-only conditionalDeclares reusable subpatterns in a branch that is skipped during ordinary flow.
feature.define-conditional - Forward backreferenceReferences a capture definition that appears later in pattern order under profile-specific participation rules.
feature.forward-backreference - Group recursionRecursively invokes a group whose invocation is already active.
feature.group-recursion - Named backreferenceConsumes text equal to a previously captured named group.
feature.named-backreference - Named subroutine callInvokes the pattern body defined by a named group.
feature.named-subroutine-call - Numbered backreferenceConsumes text equal under the profile's comparison rule to a previously captured numbered group.
feature.numbered-backreference - Numeric subroutine callInvokes the pattern body defined by a numbered group without matching the group's previously captured text.
feature.numeric-subroutine-call - Backtracking into recursionAllows a later failure to re-enter a recursive or subroutine call and try unused alternatives.
feature.recursion-backtracking - Recursion-state conditionalSelects a branch according to whether matching is inside a specified recursion or subroutine.
feature.recursion-conditional - Returned captures from recursionRestores selected capture values produced inside a recursion or subroutine to the caller.
feature.recursion-returned-captures - Relative backreferenceResolves a capture by a signed offset from the reference location.
feature.relative-backreference - Relative subroutine callInvokes a group body located by a signed group-number offset.
feature.relative-subroutine-call - Unset backreference behaviorDefines whether a reference to a nonparticipating capture fails, matches empty, or errors.
feature.unset-backreference-behavior - Engine-version conditionalSelects a branch or compile result according to an engine version test embedded in the pattern.
feature.version-conditional - Whole-pattern recursionRecursively invokes the complete pattern from the current matching position.
feature.whole-pattern-recursion
control1
Category provenance
All 19 entries above derive from the canonical Regex Conformance snapshot at reviewed revision 3285cc9fa8310df0af00fa50724d65531e0695d9. The bound semantic digest is e2c99c582ad9c8f2875060f9cb9d3ec0da8057f554ac09477f8e07b96da30b05.