Issue #5606 has been updated by mame (Yusuke Endoh).

Target version set to next minor


----------------------------------------
Feature #5606: String#each_match(regexp)
https://bugs.ruby-lang.org/issues/5606#change-33258

Author: tomoakin (Tomoaki Nishiyama)
Status: Feedback
Priority: Low
Assignee: 
Category: 
Target version: next minor


??????????正覨?????????????????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://bugs.ruby-lang.org/