110,535
社区成员
发帖
与我相关
我的任务
分享
for (int i = 0; i < this.myGridView1.Rows.Count; i++)
{
string ma = Regex.Match(myGridView1.Rows[i].Cells[0].Value.ToString(), "\\d",RegexOptions.RightToLeft).Value;
MessageBox.Show(ma);
}
string[] strs = { "s11205y", "z82194b", "s11217", "12306" };
strs.Where(a=>Char.IsDigit(a[a.Length - 1])).ToList().ForEach(a => Console.WriteLine(a))