I'm aware of the issues with using regex to find html, but I'm mainly wondering if I can improve this regex for more findings:
//Looking for <div class="glance_details">
$regex = "/<\\s*div\\s+[^>]*class=['\"][^'\"]*glance_details[^'\"]*['\"]/i";
Perhaps it's safer just to look for glance_details
?
EDIT:
RegEx match open tags except XHTML self-contained tags
I have given in to the scourge.