mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
3c68e49178
implement positive and negative lookahead in the backtracking engine: - (?=pattern): succeeds if pattern matches at current position without consuming characters - (?!pattern): succeeds if pattern does NOT match at current position new bytecodes RE_LOOKAHEAD and RE_NEG_LOOKAHEAD implemented in the backtracking engine via nested bt_match calls. Co-authored-by: Claude <noreply@anthropic.com>