c# - Replace \" in a string -


i have problem seems simple, life of me, can't figure out how accomplish it.

here starting string:

hello \"this string\" 

here want result be:

hello "this string" 

so basically, need replace \" ".

i do not want remove occurrences of \ since single backslash exist elsewhere in string. want replace occurrences of \" ".

if string contains \":

var replaced = mystring.replace(@"\""", @"""") 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -