Home  >  Article  >  Backend Development  >  问一个php正则的有关问题 请高手帮忙

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

WBOY
WBOYOriginal
2016-06-13 13:49:53734browse

问一个php正则的问题 请高手帮忙~
$url   =   'http://www.cfi.net.cn/p20070802001393.html ';
$file   =   file_get_contents   ($url);  

$content   =   '/
([^


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

print_r(   $out   );

我想匹配该地址中
  和  
之间的正文内容
正则式该怎么写?

------解决方案--------------------
/
((?:.|\n|\r)*)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn