title: Regex with named capture groups getting all matches in Ruby
body: <p>I have a string:</p>
  
  <pre><code>s="123--abc,123--abc,123--abc"
  </code></pre>
  
  <p>I tried using Ruby 1.9's new feature "named groups" to fetch all named group info:</p>
  
  <pre><code>/(?&lt;number&gt;\d*)--(?&lt;chars&gt;\s*)/
  </code></pre>
  
  <p>Is there an API like Python's <code>findall</code> which returns a <code>matchdata</code> collection? In this case I need to return two matches, because <code>123</code> and <code>abc</code> repeat twice. Each match data contains of detail of each named capture info so I can use <code>m['number']</code> to get the match value.</p>