本帖最后由 wokao98 于 2011-12-21 07:23 编辑 <table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width=20 class="Evfsdf19"> </td>
<td class="Event19" width="125">2011-12-19 15:00</td>
<td class="Event19" width="19"><img src="/asdn/images/Easd.gif" border="0"></td>
<td class="Event19"><a href="/dfsdfon/view.asp?view=IntdfObjdfsect=I:34086">sdffd20-FastEthernet0/6 User defined Receive Bandwidth changed from 10000000 to 100000000 bps</a> </td>
</tr>
<tr>
<td width=20 class="Event5000"> </td>
<td class="Event5000" width="125">2011-12-19 14:41</td>
<td class="Event5000" width="19"><img src="/NetPerfMon/images/Event-5000.gif" border="0"></td>
<td class="Event5000"><a href="/Netdvxcson/view.asp?view=Intedfas&Ndfwbject=I:fw86">Indsdas0/39 - dswd60dswis Down.
This indicates a problem with this network segment that should be investigated.
This problem was identified at 2011-12-19 14:41.</a> </td>
</tr>
<tr>
<td width=20 class="Event11"> </td>
<td class="Event11" width="125">2011-12-19 14:41</td>
<td class="Event11" width="19"><img src="/Ndwawon/images/Evdwa1.gif" border="0"></td>
<td class="Event11"><a href="/Nedwqon/view.asp?view=Indwwq6">Ldwwdwqap</a> </td>
</tr>
<tr>
<td width=20 class="Event5000"> </td>
<td class="Event5000" width="125">2011-12-19 14:17</td>
<td class="Event5000" width="19"><img src="/Nwdqdsn/images/Event-5000.gif" border="0"></td>
<td class="Event5000"><a href="/Newdeqwe/view.asp?view=dwqa8">sdwqaswn</a> </td>
</tr>
</table>
我想获取 class="Event5000"的所有行,请问应该如何写正则呢?
即这种格式的代码行
<tr>
<td width=20 class="Event5000"> </td>
<td class="Event5000" width="125">2011-12-19 14:17</td>
<td class="Event5000" width="19"><img src="/Nwdqdsn/images/Event-5000.gif" border="0"></td>
<td class="Event5000"><a href="/Newdeqwe/view.asp?view=dwqa8">sdwqaswn</a> </td>
</tr>
感谢各位大神。。。谢谢。。。 |