#include <ie.au3> ;$_url = "http://www.baidu.com/" $oIE = _IEAttach("百度一下"); 网页标题 ;$sHTML = _IEDocReadHTML($oIE);方法一 $sHTML=_IEBodyReadHTML($oIE);方法二 MsgBox(0, "$sHTML", $sHTML);测试使用 Local $test $test = StringRegExp($sHTML, '(?<=让上网更安全,)\w+', 3) ;对网页正则,希望查找的是"立即下载百度杀毒". MsgBox(0, "$test", $test) MsgBox(0,"$test[0]",$test[0]);查找不到"立即下载百度杀毒"
举报
(?<=让上网更安全,)[^<]+
(?<=让上网更安全,)(.*?)<
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-1-2 02:12 , Processed in 0.090560 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.