.net 去除字符串中标点符号

来源:互联网 发布:sql语句时间格式化 编辑:程序博客网 时间:2024/05/21 05:39
 public static String repalceStr(string hexData)
        {
            return Regex.Replace(hexData, "[ \\[ \\] \\^ \\-_*×――(^)$%~!@#$…&%¥—+=<>《》!!???::•`·、。,;,.;\"‘’“”-]", "").ToUpper();
        }
阅读全文
0 0
原创粉丝点击