Issue #5606 has been reported by Tomoaki Nishiyama.

----------------------------------------
Feature #5606: String#each_match(regexp)
http://redmine.ruby-lang.org/issues/5606

Author: Tomoaki Nishiyama
Status: Open
Priority: Low
Assignee: 
Category: 
Target version: 


???絖????筝???罩hΘ?????眼???????贋?????offset?????????????с??????????????
??ゃ?????若?帥??罨蚊???????c?????с????????
?????c???膣≪????????1996綛?
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/1206
??????????荅宴?????????
http://stackoverflow.com/questions/6804557/how-do-i-get-the-match-data-for-all-occurrences-of-a-ruby-regular-expression-in
??????????????篋???????????????????????荀??????????????????с?????

class String
  def each_match(pattern, offset=0)
    while(m = self.match(pattern, offset))
      offset = m.begin(0)+1
      yield m
    end
  end
end

?????????????????????鐚?
絲丞О????Regexp#each_match?????с???????????


-- 
http://redmine.ruby-lang.org