title: Parsing a String in Ruby (Regexp?)
body: <p>I've got a string</p>
  
  <pre><code>Purchases 10384839,Purchases 10293900,Purchases 20101024
  </code></pre>
  
  <p>Can anyone help me with parsing this? I tried using StringScanner but I'm sort of unfamiliar with regular expressions (not very much practice).</p>
  
  <p>If I could separate it into</p>
  
  <pre><code>myarray[0] = {type =&gt; "Purchases", id="10384839"}
  myarray[1] = {type =&gt; "Purchases", id="10293900"}
  myarray[2] = {type =&gt; "Purchases", id="20101024"}
  </code></pre>
  
  <p>That'd be awesome!</p>