I have an error
somewhere in the following block of text, I understand it has to do something with regular Expressions but to what extent I am not sure?
Any help would be very appreciated - btw, i'm running IIS as my webserver.
Code:
Microsoft VBScript runtime error '800a139a'
Unexpected quantifier
somewhere in the following block of text, I understand it has to do something with regular Expressions but to what extent I am not sure?
Code:
function strip_html(str_html)
':::::::::::::::::::::::::::::::::::::::::::::::::::::
' removes html tags from str_html
':::::::::::::::::::::::::::::::::::::::::::::::::::::
dim objRegExp, str_output
set objRegExp = new Regexp
if not isNull(str_html) then
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "<(.|\n)+?>"
str_output = objRegExp.Replace(str_html, "")
objRegExp.Pattern = "\&(.|\n)+?;"
str_output = objRegExp.Replace(str_output, "")
str_output = Replace(str_output, "<", "<")
str_output = Replace(str_output, ">", ">")
strip_html = str_output
end if
set objRegExp = Nothing
end function
Any help would be very appreciated - btw, i'm running IIS as my webserver.