C# 字符串去除\r\m
2020-10-12 本文已影响0人
Rinaloving
问题
[
"[\r\n \"11:21:57\"",
"\r\n \"12:21:57\"\r\n]"
]
方法
System.Text.RegularExpressions.Regex.Replace(model.SAm, "\\s*|\t|\r|\n", "");
[
"[\r\n \"11:21:57\"",
"\r\n \"12:21:57\"\r\n]"
]
System.Text.RegularExpressions.Regex.Replace(model.SAm, "\\s*|\t|\r|\n", "");