title: how to remove a tag and its contents using regular expression?
body: <p>$str = 'some text  tag <em>contents </em>  more text ';</p>
  
  <p>My questions are:
  How to retrieve content <code>tag &lt;em&gt;contents &lt;/em&gt;</code> which is between <code>&lt;MY_TAG&gt; .. &lt;/MY_TAG&gt;</code>?</p>
  
  <p>And</p>
  
  <p>How to remove <code>&lt;MY_TAG&gt;</code> and its contents from <code>$str</code>?</p>
  
  <p>I am using PHP.</p>
  
  <p>Thank you.</p>