Home >Backend Development >PHP Tutorial >正则匹配问题

正则匹配问题

WBOY
WBOYOriginal
2016-06-23 14:26:36866browse

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

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

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


回复讨论(解决方案)

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

Statement:
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