s="這(zhè)是第一張圖片:<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