本帖最后由 afan 于 2011-10-10 20:24 编辑 #include <Array.au3>
Local $Str = '<a target="_blank" href="http://61.153.87.50:80/d2/66fea41383cc6640c36f15e77b01579514a1fb2c/www.gokuai.com/index/file_download2?pickupcode=nSCgvH4t461A005h&ip1=111.124.252.216&loc=http://61.153.87.50:80/2&key1=db8df2eeb3e2386dd3515b279aed8a86f0df4917">电信下载</a> <a target="_blank" href="http://61.153.83.107:80/d2/66fea41383cc6640c36f15e77b01579514a1fb2c/www.gokuai.com/index/file_download2?pickupcode=nSCgvH4t461A005h&ip1=111.124.252.216&loc=http://61.153.83.107:80/3&key1=6d3d73428e1b5456981c09448abcd971299f0807">备份下载</a> </div>'
;MsgBox(0, '原字符串', $Str)
Local $Test = StringRegExp($str, 'href="(.+?)">电', 1)
If Not @Error Then MsgBox(0, '匹配数量: ' & UBound($Test), '其中[0]元素为: ' & $Test[0])
;_ArrayDisplay($Test, UBound($Test))
|