本帖最后由 lixiaolong 于 2013-5-30 13:58 编辑
#include <Array.au3>
Dim $SR = '<p><b fromubb="1"><font size="2"> 项目地址:北京市顺义区</font>'& _
'<p><font size="2"> 项目占地:总用地364亩(约24万平米)</font></p>'& _
'<p><a href="http://www.chla.com.cn/upload/0517146281.jpg#" target="_blank">' & _
'<a href="http://b40.p.com/http_d.cgi?/rurl4_b=79e8131e6cfa4f&a=33&b=40" appendurl="1" target="_blank">'& _
'<img alt="图片" appendurl="1" border="0" src="http://b40.q.com/http_d.cgi?/rurl4_b=79eadfa4f&a=33&b=40" />'& _
'</a>'& _
'</a>'& _
'<wbr/>'& _
'</p>'
Dim $htmlUrl = StringRegExp($SR, '(项目[^&]+)|http://[^"]+',3)
_ArrayDisplay($htmlUrl, UBound($htmlUrl))
#include <Array.au3>
Dim $SR = '<p><b fromubb="1"><font size="2"> 项目地址:北京市顺义区</font>'& _
'<p><font size="2"> 项目占地:总用地364亩(约24万平米)</font></p>'& _
'<p><a href="http://www.chla.com.cn/upload/0517146281.jpg#" target="_blank">' & _
'<a href="http://b40.p.com/http_d.cgi?/rurl4_b=79e8131e6cfa4f&a=33&b=40" appendurl="1" target="_blank">'& _
'<img alt="图片" appendurl="1" border="0" src="http://b40.q.com/http_d.cgi?/rurl4_b=79eadfa4f&a=33&b=40" />'& _
'</a>'& _
'</a>'& _
'<wbr/>'& _
'</p>'
Dim $htmlUrl = StringRegExp($SR, '(项目[^&]+)|http://.*?jpg[^"]+',3)
_ArrayDisplay($htmlUrl, UBound($htmlUrl))
|