From: Run Paint Run Run Date: 2009-08-05T02:33:41+09:00 Subject: [ruby-core:24751] [Bug #1873] MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group Issue #1873 has been updated by Run Paint Run Run. Yui, Thank you for your help. I didn't realise it would be difficult. I'd assumed that as: /(?a)(?b)(?c)/.named_captures => {"a"=>[1, 2, 3]} And: 'abc'.match(/(?a)(?b)(?c)/)[1..3] => ["a", "b", "c"] It would be simply be a matter of mapping one to the other. How about then if we set this ticket's priority to 'Low', then add a note to the documentation of MatchData#[] that explains this quirk? :-) (As an aside that Oniguruma document would make a great start for the RDoc of Regexp. Currently the actual syntax of the patterns doesn't seem to appear anywhere in `ri`.) ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1873 ---------------------------------------- http://redmine.ruby-lang.org