Extract specific substring using javascript?
<p>If I have the following string:</p>

<pre><code>mickey mouse WITH friend:goofy WITH pet:pluto
</code></pre>

<p>What is the best way in javascript to take that string and extract out all the "key:value" pairs into some object variable? The colon is the separator. Though I may or may not be able to guarantee the WITH will be there.</p>
