如何用PHP正则表达式匹配图片并自动添加链接?本文共计196个文字,预计阅读时间需要1分钟。正则表达式:复制代码$newstext=preg_replace(preg_replace('(?:img[^>]+srcs*=s*.*?)im', 'a h2026-03-301阅读0评论