去除HTML的正则表达式函数

去除HTML的正则表达式函数Function RemoveHTML(strText)
去除HTML的正则表达式函数       
Dim RegEx      
去除HTML的正则表达式函数       
Set RegEx = New RegExp      
去除HTML的正则表达式函数       RegEx.Pattern 
= "<[^>]*>"
去除HTML的正则表达式函数       RegEx.Global 
= True      
去除HTML的正则表达式函数       RemoveHTML 
= RegEx.Replace(strText, "")      
去除HTML的正则表达式函数 
End Function 
带空格和回车符号的HTML去除函数
去除HTML的正则表达式函数function   GetInnerText(strHtml)   
去除HTML的正则表达式函数        
dim   regex   
去除HTML的正则表达式函数        
Set   regex   =   New   RegExp   
去除HTML的正则表达式函数        regex.Pattern   
=   "<\/?[^>]*>"   
去除HTML的正则表达式函数        regex.Global   
=   True   
去除HTML的正则表达式函数        regex.IgnoreCase   
=   True   
去除HTML的正则表达式函数        GetInnerText   
=   regex.Replace(strHtml,"")   
去除HTML的正则表达式函数        regex.Pattern   
=   "\n"   
去除HTML的正则表达式函数        regex.Global   
=   True   
去除HTML的正则表达式函数        regex.IgnoreCase   
=   True   
去除HTML的正则表达式函数        GetInnerText   
=   regex.Replace(GetInnerText   ,"")   
去除HTML的正则表达式函数        
Set   regex   =   Nothing   
去除HTML的正则表达式函数  
end   function 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-02-24
  • 2022-02-12
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案