Possible Duplicate:
RegEx match open tags except XHTML self-contained tags
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.
For example I need to remove the whole div with class name zzz
<div class="zzz">
<b>some html</b>
(other div's could be inside)
<div>
Hope someone can help me