From: Yui NARUSE Date: 2009-08-05T15:59:06+09:00 Subject: [ruby-core:24777] [Bug #1873] MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group Issue #1873 has been updated by Yui NARUSE. > one approach is to return an Array when there are multiple matches; a String otherwise There are few APIs which returns different types except true/false or obj/nil. This is because such API disturbs duck typing. So new API which returns always Array seems the way. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1873 ---------------------------------------- http://redmine.ruby-lang.org