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

WBOY
Release: 2016-06-13 13:49:53
Original
733 people have browsed it

问一个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)*)
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!