I would like to replace the escape sequence from string test= "\"hi hello\" " to string test=" "hi hello" ". Basically I want to replace \" to ". Any suggestions?
I would like to replace the escape sequence from string test= \hi hello\ to
Share
This is not possible, as if you remove the escape sequences, you will have an invalid string.
You can use verbatim string literals, but these also require escaping of double quotes.
Can you please explain why you want to remove the escape sequences? They will not be visible when you output a string.
The debugger will display the escape sequences as an aid, but if you output the string, you will not see them.