function cut(str,begin,over)
if instr(str,begin)>0 and instr(str,over)>0 then
instr1=instr(str,begin)
instr2=instr(instr1+len(begin),str,over)
if instr2>0 then
newstr=left(str,instr2-1)
cut=right(newstr,len(newstr)-instr1-len(begin)+1)
end if
end if
end function%>
转载于:https://www.cnblogs.com/mylink/p/3371571.html