Regex.Replace(content, @"[^\u4e00-\u9fa5]", "")
转载于:https://www.cnblogs.com/xsmhero/archive/2012/02/10/2345250.html
本文介绍了一种使用正则表达式(Regex)的方法来替换字符串中所有非中文字符为空字符,实现对文本数据的初步清洗。
转载于:https://www.cnblogs.com/xsmhero/archive/2012/02/10/2345250.html

被折叠的 条评论
为什么被折叠?