title: Replacing some parts of an html source code
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags">RegEx match open tags except XHTML self-contained tags</a>  </p>
  </blockquote>
  
  
  
  <p>How can I remove whole div's of an HTML source code ?
  To remove it I would replace with an empty string but I'm unable to get a pattern which matches. The class name is always given.</p>
  
  <p>For example I need to remove the whole div with class name zzz</p>
  
  <pre><code>&lt;div class="zzz"&gt; 
      &lt;b&gt;some html&lt;/b&gt;
      (other div's could be inside) 
  &lt;div&gt;
  </code></pre>
  
  <p>Hope someone can help me</p>