Deleting everything that is enclosed with quotes or is a number in Python?
<p>Lets say I have this string:</p>

<pre><code>myString="'Hello'+yes+'Whats hello'6"
</code></pre>

<p>I am looking for a way to delete everything enclosed in quotes</p>

<p>So, it would become:</p>

<pre><code>"+yes+"
</code></pre>

<p>Because, 'Hello'  and 'Whats hello' are enclosed by quotes. And 6 is a number.</p>

<p>Is there a way to do this? Maybe using Regular Expressions? I tried doing this with a For Loop, but I guess my logic wasn't that great.</p>
