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>';
Consider giving up on the idea of parsing your HTML with regex, and use something like simple html dom.
Otherwise yes, you may awake to find HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo͟ur eye͢s̸ ̛l̕ik͏e liquid pain.