用正则简单写一段供楼主参考吧#include <INet.au3>
$sHTML = _INetGetSource ("http://www.nongli.com/item4/index.asp");获取网页资源代码
$array =StringRegExp($sHTML,'align="right"><b>(.+:)</b>',3);正则提取
$array2 =StringRegExp($sHTML,'red>(.+):</FONT></b></div>',3)
$array3 =StringRegExp($sHTML,'green>(.+):</FONT></b></div>',3)
$array4 =StringRegExp($sHTML,'bgcolor="#FFD680">(.+)</td>',3)
msgbox(0, $array[0],$array4[0]);输出结果
msgbox(0, $array[1],$array4[1])
msgbox(0, $array2[0],$array4[2])
msgbox(0, $array3[0],$array4[3])
msgbox(0, $array[2],$array4[4])
msgbox(0, $array[3],$array4[5])
msgbox(0, $array[4],$array4[6])
msgbox(0, $array[5],$array4[7])
msgbox(0, $array[6],$array4[8])
msgbox(0, $array[7],$array4[9])
|