[MacRuby] #1071: When combining negative look-ahead with look-behind in a regexp, macruby doesn't match correctly

MacRuby ruby-noreply at macosforge.org
Wed Dec 22 03:18:02 PST 2010


#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/>



More information about the macruby-tickets mailing list