Recommended: Four ways to export Excel data by ASP 1. Use OWC What is OWC? OWC is the abbreviation of office Web Comput, which is Microsoft's office Web component. It provides a flexible and basic mechanism for drawing graphics in the web. In an intranet environment, if you can assume a guest
'Modified the pattern again'code to detect
'http://www.CuoXIn.com/asp.asp
'leixing html or ubb
'nopic code has no image default value
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
Share: ASP Advanced: Simple Search Engine Code Made with Asp The following is the URLINDEX table in the library: the URL and Keywords fields have been indexed respectively. URL text (index: with (no duplication)) Title text Description Text Summary