Function regExReplace(sSource, replStr)  //(替换字符集,代替值)
Dim regEx, str1 
str1 = sSource 
Set regEx = New RegExp 
regEx.Pattern = "<a.*?>|</a>"
regEx.IgnoreCase = True 
regEx.Global = True 
regExReplace = regEx.Replace(str1, replStr) 
End Function 

 

dim c1
c1="<p><a href='1.html'>11111</a></p><p>2222</p> <p><a href='2.html'>3333</a></p><p>44444</p> " 
response.Write regExReplace(c1,"")

相关文章:

  • 2021-12-13
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2021-11-26
  • 2021-06-24
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2021-11-04
  • 2021-04-24
  • 2021-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-12-16
相关资源
相似解决方案