asp读取内容中的一段数据的问题
数据库字段 content 的内容是
ppppppppppp <IMG src= "news/images/2007711121419260.gif "> lllllllll
我想只取 images/2007711121419260.gif 咱们写代码
------解决方案-------------------- <%
str = "ppppppppppp <IMG src= " "news/images/2007711121419260.gif " "> llllllllldfgdfgdfg <IMG src= " "news/images/ddddd.gif " "> cvbcvbcvb "
s = instr(str, " < ") +9
e = instr(str, "> ") -2
getstr = left(str,e)
getstr = replace(getstr,left(getstr,s), " ")
response.write getstr
%>