如中国人口(22222222222) 结果:22222222222
正则:
string input="中国人口(22222222222) ";
Regex regex = new Regex(@"(\d+)");
fans= regex.Match(input).Value;
本文共 212 字,大约阅读时间需要 1 分钟。
如中国人口(22222222222) 结果:22222222222
正则:
string input="中国人口(22222222222) ";
Regex regex = new Regex(@"(\d+)");
fans= regex.Match(input).Value;
转载于:https://www.cnblogs.com/walleyekneel/archive/2012/01/30/2331746.html