头晕了 简单正则不会写,哪位高手帮速看看。多谢

WBOY
Release: 2016-06-13 11:15:19
Original
842 people have browsed it

头晕了 简单正则不会写,谁帮速看看。。谢谢
$a='
abc

abc123
';

$c=preg_replace('#.*(.*).*#U','',$a);

想替换掉及2个里面的内容.....


------解决方案--------------------
本帖最后由 xuzuning 于 2013-02-25 15:47:39 编辑 $c = preg_replace('#(.*).*#Us','',$a);

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