Regex replace text in python
<p>I have text looks like:</p>

<pre><code>Added "a-foo-b" foo.
</code></pre>

<p>The goal is to use a <strong>regular expression</strong> to replace the second foo to bar, and leave the first foo between two double quotes untouched.
So in the text above, the result I am looking for is:</p>

<pre><code>Added "a-foo-b" bar.
</code></pre>

<p>Thanks</p>
