string s="stien2234sdfw3,567s,6977w";
[quote=引用 6 楼 zsmlion 的回复:] [quote=引用 4 楼 hwenycocodq520 的回复:]
@"\d+|,"
[quote=引用 4 楼 hwenycocodq520 的回复:]
[quote=引用 2 楼 zsmlion 的回复:] [quote=引用 1 楼 hwenycocodq520 的回复:] string s = "stien2234sdfw3,567s,6977w"; MatchCollection ms=Regex.Matches(s, @"\d+"); foreach (Match m in ms) Console.WriteLine(m.Value);
string s = "stien2234sdfw3,567s,6977w"; MatchCollection ms=Regex.Matches(s, @"\d+"); foreach (Match m in ms) Console.WriteLine(m.Value);
[quote=引用 1 楼 hwenycocodq520 的回复:] string s = "stien2234sdfw3,567s,6977w"; MatchCollection ms=Regex.Matches(s, @"\d+"); foreach (Match m in ms) Console.WriteLine(m.Value);
111,094
社区成员
642,554
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧