首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

怎么批量判断一个字符串中包含另外的字符串

2012-03-16 
如何批量判断一个字符串中包含另外的字符串。%lyhttpxxxresponse.Write lyresponse.Write br /if I

如何批量判断一个字符串中包含另外的字符串。
<%
ly="httpxxx"
response.Write ly
response.Write "<br />"
if InStr(1,ly,"http",1)=0 then
response.Write "wu"
else
response.Write "you"
end if 
%>

上面这个只能判断字符串ly里面是否包含了http
我想同时判断ly字符串里面是否包含了http,a,herf,script,swf等,改怎么改进代码??

[解决办法]

热点排行