title: PHP Regex replace tags
body: <p>I have a piece of text that contains:</p>
  
  <pre><code>[shipping_address]
  &lt;p&gt;&lt;b&gt;#shipping_title#&lt;/b&gt;&lt;/p&gt;
  &lt;p&gt;#shipping_name#&lt;br&gt;
    #shipping_streetNrBox#&lt;br&gt;
    #shipping_zipcode# #shipping_city#&lt;br&gt;
    #shipping_country#&lt;br&gt;
  &lt;/p&gt;
  [/shipping_address]
  </code></pre>
  
  <p>In php if a certain if statements return true, I want to remove the entire block (including [shipping_address][/shipping_address]). I am using a  preg_replace but I need some help with the code.</p>
  
  <pre><code>$content = preg_replace("\[shipping_address\](.*?)\[/shipping_address\]", "" , $content);
  </code></pre>
  
  <p>does not do the trick, can someone help me out please.</p>