php采集正则表达式有关问题

WBOY
Release: 2016-06-13 13:12:48
Original
819 people have browsed it

php采集正则表达式问题

2012-09-14 09:50:02 作者:ryuiu 浏览次数:0 


我只想获取时间,正则应该怎么写啊!小弟正则完全不会

------解决方案--------------------
$s='
2012-09-14 09:50:02 作者:ryuiu 浏览次数:0 
';
preg_match_all('#(.*)#isU',$s,$m);
print_r($m[1]);
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