111,097
社区成员




<!--
comm
-->
<node attr="attr">
value
</node>
string test = @"<!--
comm
-->
<node attr=""attr"">
value
</node>
";
Regex reg = new Regex(@"(?s)<!--(.*?)-->");
MatchCollection mc = reg.Matches(test);
foreach (Match m in mc)
{
richTextBox2.Text += m.Groups[1].Value + "\n";
}