110,571
社区成员
发帖
与我相关
我的任务
分享
string s = @"<!--Repeater Id='R1' OderBy='Desc'-->";
Match match = Regex.Match(s, @"<!--([^\s]*?)\s([^=]*?)='([^']*?)'\s([^=]*?)='([^']*?)'-->");
for (int i = 1; i <= match.Groups.Count;i++ )
{
Console.WriteLine(match.Groups[i].Value);
}