22222222222
33333333333
11111111111
22222222222
11111111111
22222222222
33333333333
11111111111
22222222222
33333333333
正则表达式,如何将带有 class=label 标识的元素里的内容批量替换?
回复讨论(解决方案) 你没有说明修改成什么,就假定删除吧! $s =<<< txt 11111111111 22222222222
111111111112222222222233333333333111111111112222222222233333333333
txt;echo preg_replace('#().+?()#s', '$1$3', $s);
得