string no = new Regex(@"[^\d]").Replace(tbTmpName.Text, ""); //将字符串中所有非数字替换为空白
转载于:https://www.cnblogs.com/mol1995/p/8744976.html
string no = new Regex(@"[^\d]").Replace(tbTmpName.Text, ""); //将字符串中所有非数字替换为空白
转载于:https://www.cnblogs.com/mol1995/p/8744976.html