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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top