CSDN博客

img sh5281

提取字符串

发表于2004/10/29 10:43:00  258人阅读

<%

str = "abcd<title>efghigk1234567890;djd</title>"

'response.write server.HTMLEncode(str) & "<br>"

function ChkStrSh(str,strleft,strright)


 str = right(str, len(str) - instrrev(str, strleft)-len(strleft)+1)
 'response.Write server.HTMLEncode(str) & instr(str, strright) &"<br>"
 str = left(str, instr(str, strright)-1)
 'response.Write server.HTMLEncode(str) & "<br>"
 ChkStrSh = str

end function

'response.write server.HTMLEncode(chkstrsh(str,"<title>","</title>"))

response.write chkstrsh(str,"<title>","</title>")

%>

第一篇文章,测试!

阅读全文
0 0

相关文章推荐

img
取 消
img