开发者

Why are these two strings with linebreaks different?

开发者 https://www.devze.com 2023-03-04 04:51 出处:网络
\"[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 tr
"[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

精彩评论

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