View Single Post
 
Old 01-06-2016, 05:04 AM
PRA007's Avatar
PRA007 PRA007 is offline Windows 7 64bit Office 2010 32bit
Competent Performer
 
Join Date: Dec 2014
Location: Ahmedabad, Gujrat, India
Posts: 145
PRA007 is on a distinguished road
Default How to do multiple find and replace in string.

While parsing response text obtained from website using winhttp, I am cleaning it to remove unnecessary text like this.

Code:
StrTxt = Replace(StrTxt, "<CENTER><b><i>Claims</b></i></CENTER> <HR> <BR><BR>", "")
StrTxt = Replace(StrTxt, "What is claimed is: <BR><BR>", "")
StrTxt = Replace(StrTxt, "I claim: <BR><BR>", "")
StrTxt = Replace(StrTxt, "We claim: <BR><BR>", "")
Is there any one line code using array or something to remove all the strings at once?
I know how to do that in range fro earlier posts. I don't know how to extrapolate that knowledge to string.
Reply With Quote