28,404
社区成员
发帖
与我相关
我的任务
分享string Test = "hehe/haha/xixi/";
Array Ary_test= new Array[10];
Ary_test = System.Text.RegularExpressions.Regex.Split(Test,"/");
MessageBox.Show(Ary_test.GetValue(1).ToString());
<%
dim s
s="http:/www.xxx.com/www/fff/aa/55875/fsdf"
dim tmp
tmp = Left(s,InstrRev(s,"/")-1)
Response.Write(Right(tmp,Len(tmp)-InStrRev(tmp,"/")))
%>
dim str,arr,ss
str ="http:/www.xxx.com/www/fff/aa/55875/"
arr = split(str,"/")
ss = arr(ubound(arr)-1)
response.Write(ss)