开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜