📜  c# 过滤非字母数字字符 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:58.940000             🧑  作者: Mango

代码示例1
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");