title: Get array from string in pattern - key1:val1,val2,..;key2:val1,
body: <p>I would like to get from a string like this</p>
  
  <pre><code>color:blue,red;size:s
  </code></pre>
  
  <p>to an associative multiarray</p>
  
  <pre><code>[
      color =&gt; [blue,red],
      size =&gt; [s]
  ]
  </code></pre>
  
  <p>I tried with <code>([a-z]+):([a-z^,]+)</code> but it's not enough; I don't know how to recursive it or something.</p>