正则表达式提取/过滤字符串中的汉字

过滤汉字

Regex.Replace(inputStr,@"[u4e00-u9fa5]",string.Empty);

  

提取汉字:

Regex.Replace(inputStr,@"[^u4e00-u9fa5]",string.Empty);//注意这里多了个^符号

  

原文地址:https://www.cnblogs.com/gonghui2016/p/12322390.html