This is a complete vbs on its own.
[tt][maroon] Function Main_2(strHTMLText) 'clean a-tag only
dim strSearchFor, nPos, strResult
Set RegularExpressionObject = New RegExp
With RegularExpressionObject
.Pattern = "<a[^>]*>([\s\S]*?)</a>"
.IgnoreCase = True
.Global = True
End With
strResult = RegularExpressionObject.replace(strHTMLText," $1 ")
Set RegularExpressionObject = nothing
'strResult = Trim ( strResult )
Main_2 = strResult
End Function
s="i tested to replace <a href=""[ignore]
[/ignore]"">Google Link</a> to Google Link."
wscript.echo main_2(s)[/maroon][/tt]