preg_match 非贪婪

来源:互联网 发布:python环境搭建 编辑:程序博客网 时间:2024/05/22 12:17

preg_match('/共有(.*?)条记录/',$content,$GetAllItem);


在常规.* 后面加个? 就可以了

0 0
原创粉丝点击