title: RegExp to strip HTML comments
body: <p>Looking for a regexp sequence of matches and replaces (preferably PHP but doesn't matter) to change this (the start and end is just random text that needs to be preserved).</p>
  
  <p>IN:</p>
  
  <pre><code>fkdshfks khh fdsfsk 
  &lt;!--g1--&gt;
  &lt;div class='codetop'&gt;CODE: AutoIt&lt;/div&gt;
  &lt;div class='geshimain'&gt;
      &lt;!--eg1--&gt;
      &lt;div class="autoit" style="font-family:monospace;"&gt;
          &lt;span class="kw3"&gt;msgbox&lt;/span&gt;
      &lt;/div&gt;
      &lt;!--gc2--&gt;
      &lt;!--bXNnYm94--&gt;
      &lt;!--egc2--&gt;
      &lt;!--g2--&gt;
  &lt;/div&gt;
  &lt;!--eg2--&gt;
  fdsfdskh
  </code></pre>
  
  <p>to this OUT:</p>
  
  <pre><code>fkdshfks khh fdsfsk 
  &lt;div class='codetop'&gt;CODE: AutoIt&lt;/div&gt;
  &lt;div class='geshimain'&gt;
      &lt;div class="autoit" style="font-family:monospace;"&gt;
          &lt;span class="kw3"&gt;msgbox&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  fdsfdskh
  </code></pre>
  
  <p>Thanks.</p>