1、单数值提取
#region 单数值提取
//---------Enter your code here-----------
string st = "这是第001200天"; //我们抓取当前字符当中的123
string numberString = System.Text.RegularExpressions.Regex.Replace(st, @"[^0-9]+", "");
int numberInt = int.Parse(numberString);
MessageBox.Show("numberString = "+ numberString +"\n" +"numberInt = "+numberInt.ToString());
#endregion
运行结果: