asp采集抓取网上房产信息的代码

2019-01-13 12:53:42王旭

end function
function RegexHtml(body)
dim r_arr(47),r_temp
Set regEx2 = New RegExp
regEx2.Pattern ="<a.*?</a>"
regEx2.IgnoreCase = True
regEx2.Global = True
Set Matches2 = regEx2.Execute(body) 
iii=0 
For Each Match in Matches2

r_arr(iii)=Match.Value

iii=iii+1 
Next
RegexHtml=r_arr
set regEx2=nothing
set Matches2=nothing
end function
'======================================================
conn.close
set conn=nothing
%>
</body>
</html>