日期:2014-05-17 浏览次数:20796 次
var str = "B_F_SENSUS_2G_5322_56.81.13.51.01.28";
Regex r = new Regex(@"(?is)[\d]{4}_[\d]{2}.[\d]{2}.[\d]{2}.[\d]{2}.[\d]{2}.[\d]{2}", RegexOptions.IgnoreCase);
Match m = r.Match(str);
while (m.Success)
{
var test = m.Groups[0].Value.Replace("_", "").Replace(".", "");
//输出5322568113510128
MessageBox.Show(test);
}