好东西,老外用正则表达式写的HTML分离函数
存成.asp文件,执行,你用ASPHTTP抓内容的时候用这个很爽,当然自己要改进一下了"'Replace all HTML tag matches with the empty stringstrOutput = objRegExp.Replace(strHTML, "")'Replace all
存成.asp文件,执行,你用ASPHTTP抓内容的时候用这个很爽,当然自己要改进一下了"'Replace all HTML tag matches with the empty stringstrOutput = objRegExp.Replace(strHTML, "")'Replace all
代码例子如下:" 'Replace all HTML tag matches with the empty string strOutput = objRegExp.Replace(strHTML, "") 'Replace all with strOutput = Replace(strOut
RegExp对象的用法:RegExpTest(patrn, strng)Dim regEx, Match, Matches ' 建立变量。Set regEx = New RegExp ' 建立正则表达式。regEx.Pattern = patrn ' 设置模式。regEx.IgnoreCase =