本帖最后由 wua0550 于 2011-9-26 13:19 编辑
想写个检测pubwin非法上机的工具
本人的正则实在太烂了无奈申手.....得到的网页代码如下
我想取出相应的number值下的
dataID,lineStatus,usingStatus,ipAddress,user
这几个值写入一个5维函数内.<tr id="data" number="1"
dataID="FQ-060"
lineStatus="1"
usingStatus="1"
ipAddress="192.168.0.60"
user="41272419920xxxxxxx"
align="center" bgcolor="#FFFFFF" class="listrow"
onmouseover="mouseOver()" onmouseout="localMouseOut()"
onclick="checkByShift()" selected="false">
<td align="left" height="16"
title="FQ-060">
<span id="cellContent" class="column" style="width: 100"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> <img
id="iconID" align="absmiddle" height="16"
src="../images/icn_zx.gif" width="16"
title="在线"
>
FQ-060 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 110px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 192.168.0.60 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 120px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 三元区 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')">
在线
</span>
</td>
<td align="left">
<span id="cellContent" class="column"
style="width: 92px; padding: 0"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')">
4127241992******x
</span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 1750MB </span>
</td>
<td align="left">
<span id="cellContent" class="column"
onMouseMove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 7.0.000.000.001.1005041319 </span>
</td>
</tr>
<tr id="data" number="2"
dataID="FQ-093"
lineStatus="1"
usingStatus="2"
ipAddress="192.168.0.93"
user="admin"
align="center" bgcolor="#FFFFFF" class="listrow"
onmouseover="mouseOver()" onmouseout="localMouseOut()"
onclick="checkByShift()" selected="false">
<td align="left" height="16"
title="FQ-093">
<span id="cellContent" class="column" style="width: 100"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> <img
id="iconID" align="absmiddle" height="16"
src="../images/icn_zx.gif" width="16"
title="在线"
>
FQ-093 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 110px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 192.168.0.93 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 120px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 液晶 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')">
在线
</span>
</td>
<td align="left">
<span id="cellContent" class="column"
style="width: 92px; padding: 0"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 1920MB </span>
</td>
<td align="left">
<span id="cellContent" class="column"
onMouseMove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 7.0.000.000.001.1005041319 </span>
</td>
</tr>
<tr id="data" number="3"
dataID="FQ-049"
lineStatus="1"
usingStatus="1"
ipAddress="192.168.0.49"
user="3301221988******"
align="center" bgcolor="#FFFFFF" class="listrow"
onmouseover="mouseOver()" onmouseout="localMouseOut()"
onclick="checkByShift()" selected="false">
<td align="left" height="16"
title="FQ-049">
<span id="cellContent" class="column" style="width: 100"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> <img
id="iconID" align="absmiddle" height="16"
src="../images/icn_zx.gif" width="16"
title="在线"
>
FQ-049 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 110px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 192.168.0.49 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 120px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 三元区 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')">
在线
</span>
</td>
<td align="left">
<span id="cellContent" class="column"
style="width: 92px; padding: 0"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')">
33012219880****** </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 1627MB </span>
</td>
<td align="left">
<span id="cellContent" class="column"
onMouseMove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 7.0.000.000.001.1005041319 </span>
</td>
</tr>
<tr id="data" number="4"
dataID="FQ-082"
lineStatus="1"
usingStatus="1"
ipAddress="192.168.0.82"
user="45222619840******"
align="center" bgcolor="#FFFFFF" class="listrow"
onmouseover="mouseOver()" onmouseout="localMouseOut()"
onclick="checkByShift()" selected="false">
<td align="left" height="16"
title="FQ-082">
<span id="cellContent" class="column" style="width: 100"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> <img
id="iconID" align="absmiddle" height="16"
src="../images/icn_zx.gif" width="16"
title="在线"
>
FQ-082 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 110px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 192.168.0.82 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 120px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 三元区 </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')">
在线
</span>
</td>
<td align="left">
<span id="cellContent" class="column"
style="width: 92px; padding: 0"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')">
45222619840****** </span>
</td>
<td align="left">
<span id="cellContent" class="column" style="width: 100px"
onmousemove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 1865MB </span>
</td>
<td align="left">
<span id="cellContent" class="column"
onMouseMove="parentElement.fireEvent('onmouseover')"
onmouseout="parentElement.fireEvent('onmouseout')"
onclick="parentElement.fireEvent('onclick')"> 7.0.000.000.001.1005041319 </span>
</td>
</tr>
|