[MacRuby] #1012: Inconsistent Regex behaviour
MacRuby
ruby-noreply at macosforge.org
Fri Nov 26 01:34:48 PST 2010
#1012: Inconsistent Regex behaviour
-------------------------------------------+--------------------------------
Reporter: harry@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
-------------------------------------------+--------------------------------
Comment(by watson1978@…):
It seems that handling of Regexp's ¥G is broken.
{{{
#!ruby
str = "123456789"
str.scan(/\G\d\d\d/) {|m| p m }
}}}
{{{
$ ruby t.rb
"123"
"456"
"789"
$ macruby t.rb
"123"
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1012#comment:2>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list