I found the solution and just in case if any one else have similar issue, below is the code:
Quote:
Set objRegExp = New RegExp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "[^a-zA-Z0-9_]"
RegString = objRegExp.replace(HTMLstring, "")
Set objRegExp = nothing
|