数字长度没有固定
string s = "123456_Mark324"; Regex regex = new Regex(@"^[0-9]*"); string returnStr = regex.Replace(s, ""); string getstr = s.Replace(returnStr, "");
如果前面的数字是固定的,直接用substring阿
110,533
社区成员
642,574
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧