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: 


??????????正覨?????????????????offset???????????????????????????
??????????欲????????????????????
????????索????????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