title: Regex for replacing a specific tag inside any html tag
body: <p>In one of my application i need to strip out or remove a particular tag inside all html tag attributes like :</p>
  
  <pre><code> &lt;div&lt;del&gt;class&lt;/del&gt;=&lt;del&gt;"example"&lt;/del&gt;&gt;
  </code></pre>
  
  <p>I want to remove all these <code>&lt;del&gt;</code> tag which is generated from server side script. I am using the following <code>preg_replace</code>:</p>
  
  <pre><code>  preg_replace("/&lt;.*?&gt;/", "", $string);
  </code></pre>
  
  <p>But it is replacing all the tags and i only want to replace the tag within html tags. I dont want to remove all <code>&lt;del&gt;</code> tags. I only want to remove those <code>&lt;del&gt;</code> tags which are appearing inside html tags.</p>