Project

General

Profile

Actions

Bug #20095

closed

Regex lookahead behaving strangely in 3.3.0

Added by sisyphus_cg (Sisyphus CG) 5 months ago. Updated about 2 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:115924]

Description

Multiple regex lookaheads seem to behave strangely in 3.3.0:

p "xxx" =~ /(?=.*x)x(?=banana)/ # 2

Clearly, the string xxx does not contain banana, so this regex should never match, but it does.


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #20083: String#match? behaving inconsistently with Ruby 3.3.0ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0