Home > Backend Development > PHP Tutorial > 新手 用正则表达式获取下列代码的具体时间,跪求

新手 用正则表达式获取下列代码的具体时间,跪求

WBOY
Release: 2016-06-23 13:26:45
Original
836 people have browsed it


注册时间:


2014-09-09 12:53:37




要截取出具体的注册时间,求帮助怎么写正则表达式,谢谢!


回复讨论(解决方案)

$s = <<<TXT<tr><td align="right"><p class="zh_p">注册时间:</p></td><td align="left"><p class="zh_p3">2014-09-09 12:53:37</p></td></tr>TXT;preg_match('/class="zh_p3">([^<]+)/', $s, $m);echo $m[1];
Copy after login

([^ 版主你好,就是这里我想知道

你至少得有一份手册

谢谢版主。。。因为就在看书,然后忘记了还有手册这件事情

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