I have a string which has several occurrences of the following text, exactly as it appears:
\\(Y/A M D/J\\
The unclosed parenthesis is causing issues, so I thought I would remove the offending section, as I do not need that portion for my use of the larger string.
I've attempted to use the following line to remove the text, however Line
is identical before and after running:
Line = Line.Replace(@"\\(Y/A M D/J\\", "");
I've used the verbatim string Identifier to avoid confusion with having to escape the special characters manually. Is there something special required to do a string.replace() when working with verbatim strings?
Note: The string Values I'm getting are pulled from Visual Studio's quickwatch feature, where I am inspecting Line
and copying the value.