better way of extracting values from string
<pre><code>str = 'This is first line \n 2 line start from her\ Service Name: test \n some 4 line \n User Name: amit \n some something \n Last Name: amit amit \n
</code></pre>

<p>Basically What I am interested is getting the service name and user name.
Should I user regular expression for doing this.
I want to create a dict like</p>

<pre><code>dict['service_name'] = 'test'
dict['user_name'] = 'amit'
dict['last_name'] = 'amit amit'
</code></pre>

<p>So what the best way of searching and getting the values.</p>

<p>Thanks</p>
