111,119
社区成员
发帖
与我相关
我的任务
分享
string s="stien2234sdfw3,567s,6977w";
@"\d+|,"
[/quote]
感谢,学习了
@"\d+|,"

string s = "stien2234sdfw3,567s,6977w";
MatchCollection ms=Regex.Matches(s, @"\d+");
foreach (Match m in ms) Console.WriteLine(m.Value);