Reputation: 845
I have a String config which is something like
<config schemaVersion="2.0" version="63634948757">
\u000a<settings>\u000a <currentValue>\u000a
I want to remove the line return character \u000a. I tried
config = config.Replace("\u000a", "");
But it doesn't work. Would appreciate it if someone could help.
Upvotes: 0
Views: 1225
Reputation: 4620
you need to escape \
, use double \\
config = config.Replace("\\u000a", "");
OR
config = config.Replace(@"\u000a", "");
Upvotes: 1