From: gotoken@... Date: 2018-08-27T02:35:39+00:00 Subject: [ruby-core:88656] [Ruby trunk Bug#13671] Regexp with lookbehind and case-insensitivity raises RegexpError only on strings with certain characters Issue #13671 has been updated by gotoken (Kentaro Goto). I encountered a non `ss` case. Is this a same problem? ``` % ruby -ve '"".match(/(?<=ast)/ui)' ruby 2.6.0dev (2018-08-27 trunk 64549) [x86_64-linux] -e:1: invalid pattern in look-behind: /(?<=ast)/i ``` It was reproduced in version 2.4 and 2.5. #14838 seems to be duplicate. ---------------------------------------- Bug #13671: Regexp with lookbehind and case-insensitivity raises RegexpError only on strings with certain characters https://bugs.ruby-lang.org/issues/13671#change-73712 * Author: dschweisguth (Dave Schweisguth) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.4.1 * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Here is a test program: ~~~ ruby def test(description) begin yield puts "#{description} is OK" rescue RegexpError puts "#{description} raises RegexpError" end end test("ass, case-insensitive, special") { /(?