M
Mark Rae
Hi folks,
Apologies - am having a bit of a "senior moment"...
Is there a way to convert a string containing escaped characters into a
verbatim string literal?
I.e. converting something like
"This string contains \"double quotes\" and \'single quotes\'"
into
@"This string contains "double quotes" and 'single quotes'"
I had thought that Regex.Unescape did this, but it's not working for me this
morning...
Any assistance gratefully received.
Mark
Apologies - am having a bit of a "senior moment"...
Is there a way to convert a string containing escaped characters into a
verbatim string literal?
I.e. converting something like
"This string contains \"double quotes\" and \'single quotes\'"
into
@"This string contains "double quotes" and 'single quotes'"
I had thought that Regex.Unescape did this, but it's not working for me this
morning...
Any assistance gratefully received.
Mark