s="这是第一张图片:<img alt=""图片1"" src=""1.jpg""><img alt=""图片2"" src=""2.jpg""><img alt=""图片3"" src=""3.jpg"">"
set rx=new RegExp
rx.IgnoreCase=true
rx.Global=true
rx.Pattern="(<img [^<]*src=""(.*?)""[^>]*>)"
s=rx.Replace(s,"<a class=""pics"" href=""$2"">$1</a>")
response.Write s
set rx=nothing