1樓:匿名使用者
b= 「阿輪族斯頓交(的薩芬)流看法(的薩芬)春槐」contentstr=split(b,"(的薩芬)")contentstr(0)'這樣等於「阿斯頓交」contentstr(1)'這樣等扒桐友于「流看法」
asp處理字串問題
2樓:網友
如果你不瞭解ascii碼值的用法,那就用最原始的辦法,擷取字串第乙個字元,然後有for迴圈26次,與26個英文字母對比,如果相同就返回true,也就是說第乙個是字母,至於後面的名稱你可以擷取字串得到。
辦法是老了點,但思路是明瞭了,不會有難點,基礎的js就能解決,goodluck
asp字串處理問題
3樓:來自南屏古村精緻的懶羊羊
left(str,instrrev(str,'.
left左起字串。
instrrev從後面查詢。最後的位置。
關於 asp 處理字串??
4樓:蕾仔屋屋
有好多方法了,正則是最簡單的了,但我不會。。哈。
我用其它的方法。
if instr(aa,"?0 then bb=split(aa,"?將aa以問號分段儲存在bb的陣列裡。
bb(0) '第乙個陣列就是你想要的了。
asp怎麼這樣處理字串?
5樓:網友
去網上找乙個路徑整合功能吧!
我的在家裡的電腦裡,現在在公司!
function getrealpath(url)dim fn
set reg = new regexp
truegetrealpath = url '必須已經是http開頭的了!
getrealpath = ,""去掉了 .\而。\比較麻煩!
getrealpath = replace(getrealpath,"\
end function
6樓:網友
直接強加到上面一樣可以獲得正確路徑啊。
asp.net c#字串處理的問題。
7樓:網友
用trim();
string str = 49,48,35,37,"念寬衝;
string newstr = ',就可以得到你想要仔殲得效果了,要是還不明白,可以巧拿加我得hi
asp字串處理
8樓:缺鈣童子
用asp處理感覺不好處理 可能用到正規表示式。
asp 字串處理
9樓:網友
下面的程式測試通過:
dim strold,strnew
dim arrproduct,arrpricedim i
strtemp="aaaaa**280元bbbb**380元cccc**480元dddd"
arrproduct=split(strtemp,"元")for i=0 to ubound(arrproduct)if instr(arrproduct(i),"**")>0 then
arrprice=split(arrproduct(i),"**")strnew=strnew&arrprice(0)&"**"&arrprice(1)&"元/年 "&arrprice(1)/10&"元/月"
elsestrnew=strnew&arrproduct(i)end if
nextstrnew
sql,怎樣遍歷字串,sql遍歷字串問題
declare idx int,str nvarchar 1000 set str 我的字串 set idx 1 while idx len str begin substring str,idx,1 取得 idx所在的這個字元 set idx idx 1end 不用pl sql,只用sql sel...
C 字串長度與位元組的問題,C 字串有效長度的問題
1 strlen函式是返回字元長度 以空字元為結束符 所以是5 2 sizeof str 返回是指定變數占用空間大小str是指標變數,指標大小為4,所以返回4你可以把str變成陣列 char str 12345 此時str是陣列,所以sizeof str 返回的是6 strlen 函式返回不包含結束...
c語言字串程式設計問題
include int main for i 0 i a data i z data i a data i z continue for j i 1 j a data j z data j a data j z if itemp i else break for i itemp i 0 data i...