python how to parse "user:12345 location:ny search"
<p>I want python to parse string ""user:12345 location:ny search"</p>

<p>Then I can use:</p>

<pre><code>if "user" in string:
....

if "location" in string:
...
</code></pre>

<p>Any existing way to do this?</p>
