Help needed with Search/Replace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a string that has several occurrences of \" and I would like to
replace them with "

msg = msg.Replace("\"", """); //this does not work

Any suggestions?
 
I have a string that has several occurrences of \" and I would like to
replace them with "

msg = msg.Replace("\"", """); //this does not work

Any suggestions?

what about that:
msg = msg.Replace("\\\", "\"")
 
what syntax error?
it does compile and work!
proof of it, I'll send you the an attach sample!
 
Thanks, but it did not work and has some sysntax errorsOops... right, there is a syntax error:
=> msg = msg.Replace("\\\"", "\"")

however I'm concerned.... can't you solve that?
I would be worry if I were your boss :-/
 
Dim incomingString As String = "bl\ahba\lhbal\hbalh"

incomingString = incomingString.Replace("\", """")
' 4 "'s
MsgBox(incomingString)

hope this helps
 
Back
Top