title: MySQL regex replace?
body: <p>I've got a table with blob text fields. This blob has a lot of html in it. One of the pieces of html is an h2. I would like to find all instances of a word in the h2 tag, and replace it with another word (while leaving other words the same).</p>
  
  <p>For example, I would like to replace the h2 "wiggles" with "bumbles" in the following:</p>
  
  <p>Before:</p>
  
  <pre><code>&lt;h2&gt;This is some wiggles html!&lt;/h2&gt;
  &lt;p&gt;And here is some more wiggles html that could be ignored&lt;/p&gt;
  &lt;h2&gt;And this is a decoy h2&lt;/h2&gt;
  </code></pre>
  
  <p>After:</p>
  
  <pre><code>&lt;h2&gt;This is some bumbles html!&lt;/h2&gt;
  &lt;p&gt;And here is some more wiggles html that could be ignored&lt;/p&gt;
  &lt;h2&gt;And this is a decoy h2&lt;/h2&gt;
  </code></pre>
  
  <p>A pitfall I'm concerned about is the regex not stopping at the end of the first h2, and rather continuing through to the last closing of it.</p>
  
  <p>I have access to shell and phpmyadmin.</p>