正则匹配问题

WBOY
Release: 2016-06-23 14:26:36
Original
838 people have browsed it

本帖最后由 mafeifan 于 2013-11-05 15:17:29 编辑

确定文本里只包含一个PropertyImage1,要替换包含PropertyImage1的img标签
正则匹配问题
也有可能是
正则匹配问题

正则匹配问题
结构差不多 不管怎样替换成
正则匹配问题
要求php实现


回复讨论(解决方案)

preg_replace('#(正则匹配问题]*src="PropertyImage1"[^>]*>)#i', '\1', $str);

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