Backtracking control and embedded code
Control features change the matcher’s search path, commit or reject alternatives, or invoke host-visible code and callouts.
- Canonical category ID
backtracking-control-and-code- 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.
control17
- Absent expressionConstrains matching so a forbidden subpattern is absent across a governed subject interval.
feature.absent-expression - Backtracking markLabels a control point and exposes the last reached label in a result or control action.
feature.backtracking-mark - Callout during backtrackingInvokes or re-invokes callbacks as matching enters, leaves or backtracks through callout positions.
feature.callout-backtracking - Code-evaluated conditionalSelects a conditional branch using a host-language code result.
feature.code-conditional - Commit start positionPrevents unanchored matching from trying later subject start positions after failure.
feature.commit-start-position - Dynamic regex generationExecutes host-language code whose result is parsed and evaluated as a subpattern.
feature.dynamic-regex-code - Embedded match-time codeExecutes host-language code as part of pattern evaluation.
feature.embedded-code - Forced acceptanceEnds the current matching scope successfully without evaluating its remaining pattern.
feature.force-accept - Forced failureForces the current matching path to fail immediately.
feature.force-failure - Named match calloutInvokes a registered host callback selected by a name in the pattern.
feature.named-callout - Numeric match calloutInvokes a host callback at a pattern position with numeric callout data.
feature.numeric-callout - Prune backtrackingDiscards backtracking choices created since entering the current control scope.
feature.prune-backtracking - Unicode script runRequires a subpattern's matched text to satisfy a governed Unicode script-run constraint.
feature.script-run - Skip start positionsFails the current attempt and advances the next unanchored start position to a governed point.
feature.skip-start-positions - String match calloutInvokes a host callback at a pattern position with string callout data.
feature.string-callout - Substitution calloutInvokes a callback for each governed substitution event.
feature.substitution-callout - Advance to next alternativePrunes to the next alternative of the innermost governed alternation.
feature.then-alternative
Category provenance
All 17 entries above derive from the canonical Regex Conformance snapshot at reviewed revision 3285cc9fa8310df0af00fa50724d65531e0695d9. The bound semantic digest is e2c99c582ad9c8f2875060f9cb9d3ec0da8057f554ac09477f8e07b96da30b05.