当前位置: 代码迷 >> PHP >> 问一个php正则的有关问题 请高手帮忙
  详细解决方案

问一个php正则的有关问题 请高手帮忙

热度:220   发布时间:2012-03-01 10:25:47.0
问一个php正则的问题 请高手帮忙~
$url   =   'http://www.cfi.net.cn/p20070802001393.html ';
$file   =   file_get_contents   ($url);  

$content   =   '/ <\/nobr> <\/td> <\/tr> <\/table> <br> ([^ <table]*) <table/ ';

$re   =   preg_match_all(
$content,
$file,
$out);

print_r(   $out   );

我想匹配该地址中 </nobr> </td> </tr> </table> <br>   和   <table   width=100%   style= 'border-style:   solid
之间的正文内容
正则式该怎么写?

------解决方案--------------------
/ <\/nobr> <\/td> <\/tr> <\/table> <br> ((?:.|\n|\r)*) <table width=100\% style= 'border-style: solid/iU
  相关解决方案