提取一段html字符串里所有
<td class="charactor">99</td>
这样的标签里的数字。 数字是正整数,长度不知,有几个这样的标签也未知
标签的头尾都固定是<td class="charactor"> 和 </td>各位大大给个简单点的例子,正则表达式 看不懂啊
<td class="charactor">99</td>
这样的标签里的数字。 数字是正整数,长度不知,有几个这样的标签也未知
标签的头尾都固定是<td class="charactor"> 和 </td>各位大大给个简单点的例子,正则表达式 看不懂啊
foreach(Match NextMatch in TitleMatchs)
{
Label1.Text += "<br>" + NextMatch.Groups[1].Value;
}
foreach (Match m in mc)
{
richTextBox2.Text += m.Value + "\n";
}
MatchCollection mc=Regex.Matches(pattern,content);