how to efficiently strip a string with delimiting characters on both ends?
<p>good day guys! suppose i have a string with a format like so ^a.b.c^ and i want to only get a.b.c . can you teach me a more efficient way to strip the delimiters than my code below? thanks</p>

<pre><code>### line = '^123.456.102345^'
start = line.find ('^')
line = line[(start+1):]
end = line.find ('^')
line = line[:end]
print line
</code></pre>
