10 2011 档案

摘要:string reg = @"[[\-\d][\d]]?\d*(\.\d+)?";Regex regex = new Regex(reg);MatchCollection matches=regex.Matches("22.22@@dfghdf---48...54645.#-3-3.445---");foreach (Match match in matches){ Console.WriteLine(match.ToString());}输出是22.22-4854645-3-3.445 阅读全文
posted @ 2011-10-31 13:03 johney123 阅读(204) 评论(0) 推荐(0) 编辑