#1071: When combining negative look-ahead with look-behind in a regexp, macruby doesn't match correctly ----------------------------------+----------------------------------------- Reporter: al_skipp@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- ruby 1.9.2 {{{
m = "abc123abc".match /(?<=\w) (\d{3}) (?!\d)/x => #<MatchData "123" 1:"123"> m.to_s => "123" }}}
macruby 0.9 {{{
m = "abc123abc".match /(?<=\w) (\d{3}) (?!\d)/x => #<MatchData "" 1:"123"> m.to_s => "" }}}
-- Ticket URL: <http://www.macruby.org/trac/ticket/1071> MacRuby <http://macruby.org/>