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

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

//string abc = "";

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

转载于:https://www.cnblogs.com/CommonDream/archive/2012/09/27/2705008.html

你可能感兴趣的:(取出被正则表达式匹配的值)