php中正则怎么匹配table中的东西,table里面有属性_百度知道
$preg = '/<table[^>]*>[^<]*?(\d+)<\/table>/';if (preg_match_all($preg, $str, $matchs)){ $result = $matchs[1];}$result就是匹配到...更多关于求php正则匹配table标签的问题>>
php匹配html表格中内容的正则_百度知道
最佳答案: //$string就是你的html代码; preg_match_all( '/<tr[^>]*([\s\S]*?)<\/tr>/i', $string, $arr ); echo "<pre>"; print_r( $arr...更多关于求php正则匹配table标签的问题>>