You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
clarification on whether lookahead inside lookbehind can see beyond the lookbehind #5608
What input is a lookahead inside a lookbehind allowed to inspect? On "ba", Racket returns #f when (?=a) is inside the lookbehind, but #t when the same lookahead is immediately outside it.
This seems consistent with limiting the nested lookahead to the portion of input examined by the lookbehind. ECMAScript, Perl, and PCRE2 instead let it see the a in the original input. Is Racket's boundary intentional? To be honest, I feel like the racket semantics make more sense but if the goal is to match other engines this might be a bug.
Activity
CS regexp: repair lookahead nested in lookbehind