62,025
社区成员
发帖
与我相关
我的任务
分享
string r=Regex.Match(@"\d+\D+(\d+)","xyz123abcd45").Group(1).Value;
string str ="12~234vswx";
MatchCollection m = Regex.Matches(str, @"(\d+)");
int[] arr = new int[m.Count];
for (int i = 0; i < m.Count; i++)
{
arr[i] = int.Parse(m[i].Value);
}