<tr>
<td><span class="cGreen">免费</span></td>
<td>[<a href="../sort/68_1.htm">音频播放</a>]</td> <td><a href="../soft/84962.htm"><font color=#0033cc>Super MP3 Download 3.3.1.2</font></a></td>
<td>2009-12-21</td>
<td class="cBlack">3845KB</td>
</tr>
求正则表达式 要求提取出“免费”,两个href,音频播放,Super MP3 Download 3.3.1.2,2009-12-21,3845KB
<td><span class="cGreen">免费</span></td>
<td>[<a href="../sort/68_1.htm">音频播放</a>]</td> <td><a href="../soft/84962.htm"><font color=#0033cc>Super MP3 Download 3.3.1.2</font></a></td>
<td>2009-12-21</td>
<td class="cBlack">3845KB</td>
</tr>
求正则表达式 要求提取出“免费”,两个href,音频播放,Super MP3 Download 3.3.1.2,2009-12-21,3845KB
解决方案 »
- 新手请教“aspx调用ascx的问题”
- VS2003调试的时候报错附上截屏。
- 本版新新手,下载了动易的BizIdea,运行了出现如下错误,怎么解决?
- SystemError.SystemLog(ex.Message);在SQLHELPER中这句话是什么意思???
- 怎么样把数据库里的数据取出来,赋值给HTML里面的表格中
- 新手提问:VS2005 sqldatasource控件?
- ~~~~~~~~~~~~~ 请各位帮我看看这样的数据显示应该如何做~~~~~~~~~~~~
- 谢谢帮助过我的朋友,最近一边学习ASP.NET一边做了一个小的系统,用Asp.Net(C#)+sqlserver+xml,采用三层结构。我已经在这里问了20多个问
- 怎么把存储过程返回的结果填充DataSet
- 关于表格打印的问题,跪求!!!
- 级联更新
- HTML中传多个值给ASP页面
Regex regCon = new Regex(@"<[^>]*>");
MatchCollection mc = regTd.Matches(yourStr);
foreach (Match m in mc)
{
richTextBox2.Text += regCon.Replace(m.Value, "") + "\n";
}
(?<=<span[^<]*>).*?(?=</span>)href
(?<=href="[^"]*).*(?=")
能不能帮我改成这种形式的 foreach (Match NextMatch in Matches)
{
string free = NextMatch.Groups["Link"].Value.ToString().Trim();
string softname = NextMatch.Groups["softName"].Value.ToString().Trim();
.....
}
MatchCollection mc = reg.Matches(yourStr);
foreach (Match m in mc)
{
richTextBox2.Text += m.Groups["free"].Value + "\n";
richTextBox2.Text += m.Groups["typeLink"].Value + "\n";
richTextBox2.Text += m.Groups["type"].Value + "\n";
richTextBox2.Text += m.Groups["softLink"].Value + "\n";
richTextBox2.Text += m.Groups["softName"].Value + "\n";
richTextBox2.Text += m.Groups["date"].Value + "\n";
richTextBox2.Text += m.Groups["size"].Value + "\n";
}