Page is a not externally linkable
- Microsoft
-- Microsoft IIS Web Server and ASP.NET
---- Regex problems


streetshirts - 11:45 am on Jul 23, 2004 (gmt 0)


Tom,

Use this function to remove all html from a string

Function RemoveHTML( strText )
Dim RegEx

Set RegEx = New RegExp

RegEx.Pattern = "<[^>]*>"
RegEx.Global = True

RemoveHTML = RegEx.Replace(strText, "")
End Function


Thread source:: http://www.webmasterworld.com/microsoft_asp_net/2011.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com