Actions
Bug #20095
closedRegex lookahead behaving strangely in 3.3.0
    Bug #20095:
    Regex lookahead behaving strangely in 3.3.0
  
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.
        
           Updated by dentarg (Patrik Ragnarsson) almost 2 years ago
          Updated by dentarg (Patrik Ragnarsson) almost 2 years ago
          
          
        
        
      
      
    
        
           Updated by naruse (Yui NARUSE) almost 2 years ago
          Updated by naruse (Yui NARUSE) almost 2 years ago
          
          
        
        
      
      - Backport changed from 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED
        
           Updated by naruse (Yui NARUSE) almost 2 years ago
          Updated by naruse (Yui NARUSE) almost 2 years ago
          
          
        
        
      
      - Is duplicate of Bug #20083: String#match? behaving inconsistently with Ruby 3.3.0 added
        
           Updated by make_now_just (Hiroya Fujinami) almost 2 years ago
          Updated by make_now_just (Hiroya Fujinami) almost 2 years ago
          
          
        
        
      
      It is the exact same as #20207.
        
           Updated by duerst (Martin Dürst) almost 2 years ago
          Updated by duerst (Martin Dürst) almost 2 years ago
          
          
        
        
      
      - Status changed from Open to Closed
If the duplicate has already be resolved, then let's close this, too.
        
           Updated by naruse (Yui NARUSE) over 1 year ago
          Updated by naruse (Yui NARUSE) over 1 year ago
          
          
        
        
      
      - Backport changed from 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE
ruby_3_3 5f3dfa1c273c6fb9eae65ceca633b46f7e30f686.
Actions