首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么从M%%252hlackerstra%%223e中读出252和232,c#谢谢!

2012-04-10 
如何从M%%252hlackerstra%%223e中读出252和232,c#,多谢!在线等!如题![解决办法]C# codestring source M

如何从M%%252hlackerstra%%223e中读出252和232,c#,多谢!在线等!
如题!

[解决办法]

C# code
            string source = "M%%252hlackerstra%%223e";            Regex reg = new Regex(@"\d+");            foreach (Match m in reg.Matches(source))                Console.WriteLine(m.Value); 

热点排行