Feature #1873

Updated by Hiroshi Nakamura over 3 years ago

=begin

I suspect that MatchData#[:symbol] should return an Array of values when the same named group has been matched multiple times.

>> m = 'food'.match(/(?<f>oo)(?<f>d)/)
=> #<MatchData "ood" f:"oo" f:"d">
>> m[:f]
=> "d"
>> m.to_a
=> ["ood", "oo", "d"]

=end

Back