Stripping string in python between quotes
<p>I have a string </p>

<pre><code>text:u'tsod'
</code></pre>

<p>The "text:U" is part of the string.</p>

<p>I want to strip only the characters between the single quotes. I know how to strip based on location but i do not know how to strip based on a value in my case the " ' " , I simply want to extract "tsod"</p>

<p>Also , how will python understand which is the starting " ' " and which is the ending " ' " in order to perform the strip since both are same characters.</p>