string StrEX =“";
Sbarcode2 = “1231231H3434343434”;
Regex r = new Regex(@"[a-zA-Z]+");Match m = r.Match(Sbarcode2);
StrEX = m.Value;
得到StrEX 数值为 "H"
string StrEX =“";
Sbarcode2 = “1231231H3434343434”;
Regex r = new Regex(@"[a-zA-Z]+");StrEX = m.Value;
得到StrEX 数值为 "H"