美文网首页
C# 字符串去除\r\m

C# 字符串去除\r\m

作者: Rinaloving | 来源:发表于2020-10-12 11:58 被阅读0次

    问题

    [
      "[\r\n  \"11:21:57\"",
      "\r\n  \"12:21:57\"\r\n]"
    ]
    

    方法

    System.Text.RegularExpressions.Regex.Replace(model.SAm, "\\s*|\t|\r|\n", "");
    

    相关文章

      网友评论

          本文标题:C# 字符串去除\r\m

          本文链接:https://www.haomeiwen.com/subject/rgpupktx.html