当前位置: 代码迷 >> ASP >> 怎么批量判断一个字符串中包含另外的字符串
  详细解决方案

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

热度:33   发布时间:2012-03-16 16:34:56.0
如何批量判断一个字符串中包含另外的字符串。
<%
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等,改怎么改进代码??

------解决方案--------------------
  相关解决方案