<p><ahref='1.html'>11111</a></p><p>2222</p>
<p><ahref='2.html'>3333</a></p><p>44444</p>
想得到的结果是:
<p>11111</p><p>2222</p><p>3333</p><p>4444</p>
<%
FunctionregExReplace(sSource,patrn,replStr)
DimregEx,str1
str1=sSource
SetregEx=NewRegExp
regEx.Pattern=patrn
regEx.IgnoreCase=True
regEx.Global=True
regExReplace=regEx.Replace(str1,replStr)
EndFunction
dimc1,c2
c1=<p><ahref='1.html'>11111</a></p><p>2222</p>
<p><ahref='2.html'>3333</a></p><p>44444</p>
c2=regExReplace(c1,<a.*?>|</a>,)
response.Write(c2)
%>