新手求组,怎么从一堆字符串中截取出数字

新手求组,如何从一堆字符串中截取出数字例如:string sstien2234sdfw3,567s,6977w 我想把数字都截取出

新手求组,如何从一堆字符串中截取出数字
例如:


string s="stien2234sdfw3,567s,6977w"; 

我想把数字都截取出来,请问该怎么做啊?
[解决办法]

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