ASP怎樣可以獲得代碼中第一張圖片地址_ASP教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
推薦:ASP導(dǎo)出Excel數(shù)據(jù)的四種方法一、使用OWC 什么是OWC? OWC是office Web Compent的縮寫,即Microsoft的office Web組件,它為在Web中繪制圖形提供了靈活的同時(shí)也是最基本的機(jī)制。在一個(gè)intranet環(huán)境中,如果可以假設(shè)客
'把pattern 又修改了下'code要檢測(cè)的代碼
'http://m.hl5o.cn/asp.asp
'leixing html 或者ubb
'nopic 代碼沒(méi)有圖片時(shí)默認(rèn)值
function toppic(code,leixing,nopic)
set regex = new regexp
regex.ignorecase = true
regex.global = true
if leixing = "html" then
regex.pattern = "<img(.*?)src\s?\=\s?(\u0022?)([^\u0022\/>] )"
else
regex.pattern = "\[img\]([^\u005B] )“
end if
set matches = regex.execute(code)
if regex.test(code) then
if leixing = "html" then
toppic = matches(0).submatches(3)
else
toppic = matches(0).submatches(0)
end if
else
toppic = nopic
end if
end function
code1 = "<img src=""1.gif"">"
pic = toppic(code1,"html","nopic.gif")
response.Write pic
分享:ASP進(jìn)階:用asp做的簡(jiǎn)單搜索引擎代碼下面是庫(kù)中URLINDEX表:URL和Keywords字段分別添加了索引. URL 文本 (索引:有(無(wú)重復(fù))) Title 文本 Description 文本 Summary
相關(guān)ASP教程:
- asp FSO 讀寫文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過(guò)濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁(yè)模板:ASP內(nèi)建對(duì)象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無(wú)組件分頁(yè)實(shí)現(xiàn)思路及代碼
ASP教程Rss訂閱編程教程搜索
ASP教程推薦
- Asp定時(shí)執(zhí)行操作、Asp定時(shí)讀取數(shù)據(jù)庫(kù)(網(wǎng)頁(yè)定時(shí)操作詳解)
- 用網(wǎng)站地圖幫助搜索引擎
- 在asp中過(guò)濾非法字符的函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- WEB應(yīng)用的緩存兼容性設(shè)計(jì)
- ASP如何防止表單重復(fù)提交
- ASP進(jìn)階:用asp做的簡(jiǎn)單搜索引擎代碼
- 網(wǎng)站制作ASP語(yǔ)言的特點(diǎn)與功能
- ASP Cookies 教程
- ASP基礎(chǔ)教程之實(shí)例學(xué)習(xí)ASP Response 對(duì)象
- 相關(guān)鏈接:
- 教程說(shuō)明:
ASP教程-ASP怎樣可以獲得代碼中第一張圖片地址
。