<p>I have a bunch of XML that has lines that look like this</p>

<pre><code>&lt;_char font_name="/ITC Stone Serif Std Bold" italic="true" /&gt;
</code></pre>

<p>but sometimes look like this</p>

<pre><code>&lt;_char font_size="88175" italic="true" font_name="/ITC Stone Serif Std Bold" /&gt;
</code></pre>

<p>Here's what I need to do</p>

<ul>
<li>Replace <strong>italic="true"</strong> with <strong>italic="false</strong> for every line that contains <strong>ITC Stone Serif Std Bold</strong>, regardless of whether it comes before OR after the <strong>italic</strong> part.</li>
</ul>

<p>Can this be done with a single regex?</p>

<p>I'm not looking for a real-time solution.  I just have a ton of XML files that have this "mistake" in them and I'm trying to do a global search-and-replace with PowerGrep which would require a single regex.  If scripting's the only way to do it, then so be it.</p>

Well, in general, using RE for XML parsing isn't a great idea.  But if you really wanted, the easiest way would be to just do it in two lines:
```
```
if (/ITC Stone Serif Std Bold/) {
   s/italic="true"/italic="false"/g;
}
```
```