Possible Duplicate:
RegEx match open tags except XHTML self-contained tags
What is the fastest Regular Expression, to catch the ending of the first <div></div>
tag-wrapper?
$strTemplateResult =
'<div id="myIdMayBeDifferent" class="myClassMayBeDifferent">
<!-- match here. stop ! -->
<p>Don't be confused because of some neat lorem ipsum dolor.</p>
</div>';