I am trying to extract a table from HTML, here is the HTML code for the start of the table.
<table class='price' id='comp' style='clear:both;display:none'>
But when I use this PHP code, no matches are found
preg_match("/<table class='price' id='comp' style='clear:both;display:none'>.*?<\/[\s]*table>/s", $buffer, $matches);
print_r($matches);
As the tables are in the HTML, I guess the problem is with the preg_match statement.