private void ExtractUpdates(string html, ref StringBuilder buffer)
{
MatchCollection m1 = ExtractUpdates_RE.Matches(html);
string tpl = "Ext.net.replaceWith({{id:\"{0}\",html:\"{1}\"}});";
foreach (Match m in m1)
{
buffer.AppendFormat(tpl, m.Groups["id"], m.Groups["html"].Value.StripWhitespaceChars().StripExtraSpaces().Enquote());
}
}