C#字符串截取问题
content=需要截取的字符串
b=查到到的开头(结果不包含他)
e=(左到右查到的第一次内容,结果不包含他)
asp我写法如下
Function Getstr(content,b,e)
IF instr(content,b)<>0 or instr(content,e)<>0 then
w=instr(content,b)
getstrtemp=mid(content,w+len(b))
If instr(getstrtemp,e)-1>0 then getstr=left(getstrtemp,instr(getstrtemp,e)-1)
end if
End Function
C#要怎么写呢
用来做(小偷)采集程序的
按开头与结尾截取出需要的内容!
各位大大帮忙!