string n1 = Regex.Replace(string, @"\d", "");//过滤掉数字,留下非数字
string n2 = Regex.Replace(string, @"[^\d]*", "");//留下数字
过滤其他内容可参考:
https://www.cnblogs.com/roboot/p/4780370.html
string n1 = Regex.Replace(string, @"\d", "");//过滤掉数字,留下非数字
string n2 = Regex.Replace(string, @"[^\d]*", "");//留下数字
过滤其他内容可参考:
https://www.cnblogs.com/roboot/p/4780370.html