提取一个字符串中所有数字

string no = new Regex(@"[^d]").Replace(tbTmpName.Text, ""); //将字符串中所有非数字替换为空白

原文地址:https://www.cnblogs.com/mol1995/p/8744976.html