Actions
Bug #4088
closedCase Sensitivity in Regular Expressions with Lookbehind
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p430 (2010-08-16 revision 28998) [i386-cygwin]
Backport:
Description
=begin
It seems regular expressions with negative lookbehind do not treat case properly if
- there is an alternative in the lookbehind
- one alternative is longer than one char
I believe lines 18 - 20 are wrong and should return the same result as line 17.
Interestingly if the alternatives in lookbehind are exchanged the expression works as expected (lines 23 - 25).
=end
Files
Actions
#1
Updated by rklemme (Robert Klemme) over 14 years ago
=begin
Added grouping to the lookbehind to check whether precedence of "|" has an effect - it does not. Lines 23 - 25 are also wrong. (Note: line numbers from comment 1 have partially changed.)
=end
Updated by naruse (Yui NARUSE) over 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r29939.
Robert, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Actions
Like0
Like0Like0