Project

General

Profile

Feature #1873

Updated by nahi (Hiroshi Nakamura) about 12 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