Lookaround assertions
Lookaround tests whether a subpattern does or does not match before or after the current position without consuming it as part of the result.
- Canonical category ID
lookaround-assertions- Exact feature count
- 15
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.
assertion15
- Atomic lookaheadCommits the successful internal choice of a lookahead against later backtracking.
feature.atomic-lookahead - Bounded variable-length negative lookbehindAsserts absence of a backward match with a finite statically bounded range of lengths.
feature.bounded-variable-negative-lookbehind - Bounded variable-length positive lookbehindAsserts a positive backward match with a finite statically bounded range of lengths.
feature.bounded-variable-positive-lookbehind - Different-length fixed lookbehind alternativesAllows top-level fixed-length lookbehind alternatives to have different lengths.
feature.different-length-lookbehind-alternatives - Fixed-length negative lookbehindAsserts absence of a backward fixed-length match.
feature.fixed-negative-lookbehind - Fixed-length positive lookbehindAsserts a positive backward match whose alternatives have statically fixed lengths.
feature.fixed-positive-lookbehind - Lookaround capture visibilityDefines which captures made by a successful assertion remain observable outside it.
feature.lookaround-capture-visibility - Backreference in lookbehindPermits a lookbehind operand to depend on a prior capture subject to bounded-length constraints.
feature.lookbehind-backreference - Reverse lookbehind capture selectionDefines capture choice when a lookbehind evaluates pattern atoms in reverse input direction.
feature.lookbehind-reverse-capture-selection - Subroutine call in lookbehindPermits a bounded subroutine body inside lookbehind while restricting recursive cycles.
feature.lookbehind-subroutine - Negative lookaheadAsserts that a subpattern does not match forward from the current position.
feature.negative-lookahead - Non-atomic positive lookaheadAllows later failure to backtrack into a previously successful positive lookahead.
feature.non-atomic-lookahead - Positive lookaheadAsserts that a subpattern matches forward from the current position without consuming it.
feature.positive-lookahead - Unbounded negative lookbehindAsserts absence of an unbounded backward match.
feature.unbounded-negative-lookbehind - Unbounded positive lookbehindAsserts a positive backward match whose possible length has no finite static maximum.
feature.unbounded-positive-lookbehind
Category provenance
All 15 entries above derive from the canonical Regex Conformance snapshot at reviewed revision 3285cc9fa8310df0af00fa50724d65531e0695d9. The bound semantic digest is e2c99c582ad9c8f2875060f9cb9d3ec0da8057f554ac09477f8e07b96da30b05.