table里面所有的内容都不要过滤掉,包括标签和内容。
<table id="Table1" class="blacktab" bordercolor="Black" border="0" width="100%">
//内容
</table>
preg_match('/<table.*?>(.*?)<\/table>/s',$str,$match);
preg_match("/<table[^>]*?>(.*?)<\/table>/s",$html,$match);
print_r($match[1]);
<?php
$s = file_get_contents('./table.html');
preg_match('/<table[^>]*>(.*)<\/table>/is', $s, $arMatch);
var_export($arMatch);
?>