Regex regex = new Regex(@"\{zcms:(\w)+\}");
Match match = regex.Match("<div>{zcms:title}</div>");
MatchCollection matches = regex.Matches("<div>{zcms:title}</div><div>{zcms:address}</div>");
// 其中 match.Value 的值为匹配到的字符串,此处为 {zcms:title}
Match match = regex.Match("<div>{zcms:title}</div>");
MatchCollection matches = regex.Matches("<div>{zcms:title}</div><div>{zcms:address}</div>");
// 其中 match.Value 的值为匹配到的字符串,此处为 {zcms:title}
// matches 为匹配多项的 Match 对象集合,可以遍历出来所有匹配到的字符串
//匹配一个双引号可以用 ""