Wednesday, 15 July 2015

C# How to replace \" with " -


I want to replace all \ "in the string with", but do not know how. I'v tried:

  results = result   

This does not work thanks.

Check the code below, it works perfectly.

  result = result.Replace (@" \ "+" \ "", "\" ");   

How have I tried to:

  string =" Google \\\ ""; System.Console.WriteLine   

Output:

google \ "

google"

No comments:

Post a Comment