62,046
社区成员
发帖
与我相关
我的任务
分享
标记之间的数据
<tr><td align=left nowrap> <font color=green size=-1>· found <b>2,095</b> results(in <b>0.0001</b> seconds), </font></td></tr></table>
<table width=100% border=0 cellSpacing=0 cellPadding=0 id=kwac_classes>
<tr><td align=left valign=top> <table width=100% cellspacing=0 cellpadding=8 border=0 id=sr_listing><tr><td class=result><p><font size=-1>1.</font> <font color=#C60A00>语言</font>修养 <font color=#C60A00>语言</font>修养</a><br><font size=-1>proficiency in language usage</font><br><br></p>
<p><font size=-1>2.</font> <font color=#C60A00>语言</font>的多余性 <font color=#C60A00>语言</font>的多'</a><br><font size=-1>redundancy in language</font><br><br></p>
<p><font size=-1>3.</font> 类似形式语义<font color=#C60A00>语言</font>的<font color=#C60A00>语言</font></a><br><font size=-1>fsl-like language</font><br><br></p>
<p><font size=-1>4.</font> 自动编码<font color=#C60A00>语言</font>转换成COBOL<font color=#C60A00>语言</font>的辅助程序</a><br><font size=-1>accap</font><br><br></p>
<p><font size=-1>5.</font> 自动编码<font color=#C60A00>语言</font>转换成COBOL<font color=#C60A00>语言</font>的辅助程序</a><br><font size=-1>autocodercobol conversion-aid program</font><br><br></p>
<p><font size=-1>6.</font> ALGOL<font color=#C60A00>语言</font>和FORTRAN<font color=#C60A00>语言</font></a><br><font size=-1>algol and fortran</font><br><br></p>
<p><font size=-1>7.</font> Rutishauser <font color=#C60A00>语言</font></a><br><font size=-1>automatische rechenplanfertigung</font><br><br></p>
<p><font size=-1>8.</font> 自动程控工具<font color=#C60A00>语言</font></a><br><font size=-1>automatically programmed tools language</font><br><br></p>
<p><font size=-1>9.</font> 自动<font color=#C60A00>语言</font>翻译器</a><br><font size=-1>automatic language translator</font><br><br></p>
<p><font size=-1>10.</font> 自动<font color=#C60A00>语言</font>翻译</a><br><font size=-1>automatic language translation</font><br><br></p>
</table></td> <td width=32> </td><td valign=top> <p> </p></td><td><p> </p></td></tr><tr><td align=center valign=bottom nowrap colspan=3> <b> 1 </b> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=10&p=10'>[ 2 ]</a> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=20&p=10'>[ 3 ]</a> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=30&p=10'>[ 4 ]</a> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=40&p=10'>[ 5 ]</a> </td></tr></table>
<p> </p><p> </p></body></html>
void Main()
{
string s = @"<tr><td align=left nowrap> <font color=green size=-1>· found <b>2,095</b> results(in <b>0.0001</b> seconds), </font></td></tr></table>
<table width=100% border=0 cellSpacing=0 cellPadding=0 id=kwac_classes>
<tr><td align=left valign=top> <table width=100% cellspacing=0 cellpadding=8 border=0 id=sr_listing><tr><td class=result><p><font size=-1>1.</font> <font color=#C60A00>语言</font>修养 <font color=#C60A00>语言</font>修养</a><br><font size=-1>proficiency in language usage</font><br><br></p>
<p><font size=-1>2.</font> <font color=#C60A00>语言</font>的多余性 <font color=#C60A00>语言</font>的多'</a><br><font size=-1>redundancy in language</font><br><br></p>
<p><font size=-1>3.</font> 类似形式语义<font color=#C60A00>语言</font>的<font color=#C60A00>语言</font></a><br><font size=-1>fsl-like language</font><br><br></p>
<p><font size=-1>4.</font> 自动编码<font color=#C60A00>语言</font>转换成COBOL<font color=#C60A00>语言</font>的辅助程序</a><br><font size=-1>accap</font><br><br></p>
<p><font size=-1>5.</font> 自动编码<font color=#C60A00>语言</font>转换成COBOL<font color=#C60A00>语言</font>的辅助程序</a><br><font size=-1>autocodercobol conversion-aid program</font><br><br></p>
<p><font size=-1>6.</font> ALGOL<font color=#C60A00>语言</font>和FORTRAN<font color=#C60A00>语言</font></a><br><font size=-1>algol and fortran</font><br><br></p>
<p><font size=-1>7.</font> Rutishauser <font color=#C60A00>语言</font></a><br><font size=-1>automatische rechenplanfertigung</font><br><br></p>
<p><font size=-1>8.</font> 自动程控工具<font color=#C60A00>语言</font></a><br><font size=-1>automatically programmed tools language</font><br><br></p>
<p><font size=-1>9.</font> 自动<font color=#C60A00>语言</font>翻译器</a><br><font size=-1>automatic language translator</font><br><br></p>
<p><font size=-1>10.</font> 自动<font color=#C60A00>语言</font>翻译</a><br><font size=-1>automatic language translation</font><br><br></p>
</table></td> <td width=32> </td><td valign=top> <p> </p></td><td><p> </p></td></tr><tr><td align=center valign=bottom nowrap colspan=3> <b> 1 </b> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=10&p=10'>[ 2 ]</a> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=20&p=10'>[ 3 ]</a> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=30&p=10'>[ 4 ]</a> <a href='/wordsearch?q=%E8%AF%AD%E8%A8%80&c=4&d=40&p=10'>[ 5 ]</a> </td></tr></table>
<p> </p><p> </p></body></html>";
Regex r = new Regex(@"(?i)(?<=<b>)\d+([^<]+)(?=</b>)");
foreach (Match m in r.Matches(s))
{
Console.WriteLine(m.Value);
}
}
//结果:
2,095
0.0001