bsp; end if next if not ifexit then application(time&i)=KeyId '添加到数据库 '==================================================== set rs=server.CreateObject("adodb.recordset") rs.open "select top 1 * from news order by id desc",conn,3,3 rs.addnew rs("NewsClass")=NewsClass rs("City")=City rs("Position")=Position rs("HouseType")=HouseType rs("Level")=Level rs("Area")=Area rs("Price")=Price rs("Demostra")=Demostra rs("ContactMan")=ContactMan rs("Contact")=Contact rs.update rs.close set rs=nothing end if '================================================== next function RemoveTag(body)
Set regEx = New RegExp regEx.Pattern = "<[a].*?<\/[a]>" regEx.IgnoreCase = True regEx.Global = True Set Matches = regEx.Execute(body) dim i,arr(15),ifexit i=0 j=0 For Each Match in Matches TempStr = Match.Value TempStr=replace(TempStr,"<td>","") TempStr=replace(TempStr,"</td>","") TempStr=replace(TempStr,"<tr>","") TempStr=replace(TempStr,"</tr>","") arr(i)=TempStr i=i+1 if(i>=15) then exit for end if Next Set regEx=nothing Set Matches =nothing RemoveTag=arr end function function RegexHtml(body) dim r_arr(47),r_temp Set regEx2 = New RegExp regEx2.Pattern ="<a.*?<\/a>" regEx2.Ign 上一页 [1] [2] [3] [4] [5] [6] [7] 下一页 |