我需要帮助。我有 HTML,我需要给我表格的正则表达式。只有一张桌子。因为这张桌子之后是另一张桌子。示例 html:
<table class="results" cellspacing="1" cellpadding="0" border="0" width="100%" align="left">
<tr><td>text</td></tr>
</table>
<!-style>
tr.bg_selected{}
tr.bg_selected td, tr.bg_checked td { background-color:#ffe9bc !important;}
</style>**AND ANOTHER TABLE**
这是我的常客。我得到了这张桌子之后的所有桌子。
$regular = "/<table class=\"results\" cellspacing=\"(\d+)\" cellpadding=\"(\d+)\" border=\"(\d+)\" (.*)>(.*)<\/table>\n(.*)<\/style>/s";
preg_match_all($regular,$str, $matches2, PREG_PATTERN_ORDER);