title: preg_replace - How to remove contents inside a tag?
body: <p>Say I have this.</p>
  
  <pre><code>$string = "&lt;div class=\"name\"&gt;anyting&lt;/div&gt;1234&lt;div class=\"name\"&gt;anyting&lt;/div&gt;abcd"; 
  $regex = "#([&lt;]div)(.*)([&lt;]/div[&gt;])#";
  echo preg_replace($regex,'',$string);
  </code></pre>
  
  <p>The output is
  abcd</p>
  
  <p>But I want 
  1234abcd</p>
  
  <p>How do I do it?</p>