From: "fahmisetiawand (Fahmi Setiawan)" Date: 2012-10-03T18:27:01+09:00 Subject: [ruby-core:47815] [ruby-trunk - Feature #6802] String#scan should have equivalent yielding MatchData Issue #6802 has been updated by fahmisetiawand (Fahmi Setiawan). http://alkian.blogspot.com/2012/09/cara-menyembuhkan-asam-urat-dan-kolestrol-secara-alami.html http://alkian.blogspot.com/2012/09/keretamini-keretamall-komediputar-ya-keretaminikucom.html http://alkian.blogspot.com/2012/10/kata-kata-mutiara-motivasi-terbaru-2012.html http://alkian.blogspot.com/2012/08/personil-coboy-junior.html http://alkian.blogspot.com/2012/10/hasil-dan-klasemen-liga-champions.html ---------------------------------------- Feature #6802: String#scan should have equivalent yielding MatchData https://bugs.ruby-lang.org/issues/6802#change-29971 Author: prijutme4ty (Ilya Vorontsov) Status: Open Priority: Normal Assignee: Category: Target version: Ruby should have method to obtain not an array of arrays but of MatchData objects. It can help in obtaining named groups: pattern = /x: (?\d+) y:(?\d+)/ polygon = [] text.scan_for_pattern(pattern){|m| polygon << Point.new(m[:x], m[:y]) } Not to break existing code we need unique name. Ideas? May be #each_match -- http://bugs.ruby-lang.org/