真不争为什么用这个正则不能代换?
clkun 2005-04-01 01:48:44 function s(a)
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.Pattern="<IMG*SRC(=| )(.[^>]*).algin=(.*)>"
s=re.replace(a,"<IMG SRC=$2 algin=$3> border=0")
msgbox s
end function
b="<IMG onmousewheel=""return bbimg(this)"" style=""CURSOR: pointer""
onclick=window.open(this.src); SRC=""uploadfiles/2005-4/200541132047242.jpg"" onload=""if(this.width >screen.width-500)this.style.width=screen.width-500;"" align=left
border=0>"
s(b)
我要用将上面的b字符串经过函数s转换后,变成<IMG SRC="uploadfiles/2005-4/200541132047242.jpg" align=left border=0>
为什么上面的正则不行,帮忙改一下