时间:2021-07-01 10:21:17 帮助过:10人阅读
内容内容内
- $str = '内容内容内<br>容内容内容内容内容内容<img src="https://img.gxlcms.com/https://img.gxlcms.com/https://img.gxlcms.com/https://img.gxlcms.com/http:www.wz.com/1.jpg" style="width:110px" height="100px;">内容内容内容<img src="https://img.gxlcms.com/https://img.gxlcms.com/https://img.gxlcms.com/https://img.gxlcms.com/http:www.wz.com/2.jpg">';<br>
- <br>
- echo preg_replace('/<img.*?src="https: img.gxlcms.com="" ([^"]+).*?="">/is', '$0原图', $str); </img.*?src="https:>