From: mike@... Date: 2019-09-11T15:59:59+00:00 Subject: [ruby-core:94905] [Ruby master Bug#16158] "st" Character Sequence In Regex Look-Behind Causes Illegal Pattern Error When Combined With POSIX Bracket Expressions And Case Insensitivity Flag Issue #16158 has been updated by michaeltomko (Michael Tomko). Thank you both. I can confirm the encoding being a factor. It's an issue even if it is not the default. ``` 2.5.6 :013 > str = "(? "(? Regexp.new(str,"i") => /(? str = "(? "(? Regexp.new(str,"i") Traceback (most recent call last): 3: from (irb):16 2: from (irb):16:in `new' 1: from (irb):16:in `initialize' RegexpError (invalid pattern in look-behind: /(? pat = /(? pat = /(?i)(? pat = /(? pat = /((? /((? pat = /((? /((? pat = /((? /((? pat = /(? /(? pat = /(? /(?