Why are these two strings with linebreaks different?
"[a='b\\\nc']"
And
@"[a='b\
c']"
Does 开发者_开发技巧the second add a \r
or something? Is there an easy way to escape it so I can "see" the line break characters?
Nevermind. Just tried putting it through Regex.Escape
which escapes a bit more than it should, but it does show the \r
.
精彩评论