title: preg_replace tags between tags
body: <p>Im trying to replace html tags that are between pre tags. This is what I want it to do:</p>
  
  <pre><code>$str = '&lt;pre&gt;&lt;div&gt;Get&lt;p&gt;rid&lt;/p&gt; of html tags&lt;/div&gt;&lt;/pre&gt;';
  $str = preg_replace('#(&lt;pre.*?&gt;)/&lt;[^&lt;&gt;]+&gt;/(&lt;/pre&gt;)#', '$1$2', $str);
  echo $str;
  </code></pre>
  
  <p>It should responed with, "Get rid of html tags" in pre tags</p>
  
  <p>I know for a fact that,</p>
  
  <pre><code>$str = preg_replace('#(&lt;pre.*?&gt;).*?(&lt;/pre&gt;)#', '$1$2', $str);
  </code></pre>
  
  <p>works, but responds with empty pre tags.</p>
  
  <p>I just need to remove all html tags in between the pre tags.</p>