C# 正则表达式删除数字、字母,只保留下划线和汉字

string str=Regex.Replace(key, @"\d|\W|[A-Za-z]", "");

猜你喜欢

转载自blog.csdn.net/qq_38341160/article/details/121141068