C# 字符串操作
摘要:从字符串:aba,3456df3!344dfdf 提取 34563344暂时就想到这几种方法,以后有了再补充引用:using System.Diagnostics;Stopwatch sp = new Stopwatch(); sp.Start(); string str= "aba,3456df3!344dfdf"; string result = string.Empty; //测试结果 34563344 用时 00:00:00.0000094 for (int i = 0; i < str.Length; i++) { if (char.IsNumber(str
阅读全文
posted @ 2011-05-01 02:07