From: Erik Hollensbe Date: 2009-08-16T23:12:42+09:00 Subject: [ruby-core:24936] [Bug #1873] MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group Issue #1873 has been updated by Erik Hollensbe. File re_named_values_at.patch.gz added Attached is a patch which implements the overloaded #values_at functionality. If there is a problem, let me know and I'll alter it. Test cases and docs included. For now, any information (be it named capture, index, or unexpected type) that doesn't yield information is effectively a no-op, is ignored and no result appears in the array. This is the behavior I noticed in other areas of the MatchData class and figured it was safest to honor that. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1873 ---------------------------------------- http://redmine.ruby-lang.org