在ASP中用正则替换图片为什么不成功?
DMPX 2006-12-15 10:30:48 Function sdrmImg(yStr)
dim RegEx
Set RegEx=New RegExp
RegEx.Pattern ="<IMG (.*?)src=(.[^\[^>]*)(.*?)>"
RegEx.IgnoreCase = True
RegEx.Global = True
yStr=RegEx.Replace(yStr,"")
sdrmImg=yStr
End Function
strContent=sdrmImg(Rs("content"))
为什么文章内容里的图片过滤不掉?