取出被正则表达式匹配的值

#region 取出被正则表达式匹配的值
//string str = "100,101";
//MatchCollection matches = Regex.Matches(str, @"(\d+)");

//string abc = "";

//foreach (Group match in matches)
//{
// abc += match + ",";
//}
//Response.Write(abc);
#endregion

posted @ 2012-09-27 08:53  iisp  阅读(399)  评论(0编辑  收藏  举报