求个P标签的正则匹配,婚配第一段的内容

WBOY
Release: 2016-06-13 12:09:42
Original
1113 people have browsed it

求个P标签的正则匹配,匹配第一段的内容
$body = '



云南开远铁路处从一起


  近日,正全力寻找孩子的亲生父母。如认出视频中的孩子,请联系开远铁路公安处:0873-3132158。


  日前,查,辗转多地,在济南、南昌铁路警方和云南、福建、山东等地公安机关的协助下,成功侦破一拐卖儿童案。


';
preg_match_all("/

]*>([^\]*)/is",$body,$matchs1);
print_r($matchs1);
?>

希望输出

------解决思路----------------------
preg_match_all("/

]*>\s*.*\s*/isU",$body,$matchs1);
------解决思路----------------------
preg_match("/]+>/is",$body,$matchs1);
print_r($matchs1);

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!