首页 > 语言 > 关键词  > asp最新资讯  > 正文

ASP怎样可以获得代码中张图片地址

2008-05-28 09:47 · 稿源:互联网

《ASP怎样可以获得代码中张图片地址》文章已经归档,站长之家不再展示相关内容,下文是站长之家的自动化写作机器人,通过算法提取的文章重点内容。这只AI还很年轻,欢迎联系我们帮它成长:

'把pattern 又修改了下'code要检测的代码'http://www.knowsky.com/asp.asp'leixing html 或者ubb'nopic 代码没有图片时默认值function toppic(code,leixing,nopic) set regex = new regexp regex.ignorecase = true regex.global = true if leixing = "html" then regex.pattern = "]+)" 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 ifend functioncode1 = ""pic = toppic(code1,"html","nopic.gif")response.Write pic...

......

本文由站长之家用户“互联网”投稿,本平台仅提供信息索引服务。由于内容发布时间超过平台更新维护时间,为了保证文章信息的及时性,内容观点的准确性,平台将不提供完整的内容展现,本页面内容仅为平台搜索索引使用。需阅读完整内容的用户,请联系作者获取原文。

举报

  • 相关推荐
  • 大家在看

今日大家都在搜的词:

热文

  • 3 天
  • 7天