string str = "如今 34 迈进 这 12,";MatchCollection mc = Regex.Matches(str, @"\d+");if (mc.Count > 0){ string lastnum = mc[mc.Count - 1].Value;//lastnum即最后的12}