I have HTML content that I need to strip out. Some of this content sits between comments as in:
<div>Some content</div>
<!-- Begin: Modal View -->
<div class="foo">
<div> Modal View</div>
<div>...</div>
</div>
<!-- End: Modal view -->
<div>Some other content</div>
I'd like to select the contents starting from and ending with with a Regular Expression - that is including the comments. Once removed, the output would be:
<div>Some content</div>
<div>Some other content</div>
All I need is the regEx. No need to illustrate how to get the HTML. Assume that the HTML is a String Object with .replaceMethod.
Thanks!