string result = System.Text.RegularExpressions.Regex.Replace(str, @"[^0-9]+", "");
正则表达式-字符串提取数字 表达式
最新推荐文章于 2023-04-03 19:36:22 发布
string result = System.Text.RegularExpressions.Regex.Replace(str, @"[^0-9]+", "");