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
Post a Comment