ASP正則函數(shù)替換分頁后的參數(shù)
更新時間:2008年07月25日 23:44:48 作者:
在分頁系統(tǒng)里面用到的把page后面得東西都給丟掉
Function DRexPage(Str)
Dim RegEx
If IsNull(Str) Or Str="" Then Exit Function
Set RegEx=New RegExp
RegEx.IgnoreCase=True
RegEx.pattern="(\&)?page=(\d)+"
DRexPage=regEx.replace(Str,"") '(Str,"$1")
Set RegEx=Nothing
End Function
在分頁系統(tǒng)里面用到的把page后面得東西都給丟掉
Dim RegEx
If IsNull(Str) Or Str="" Then Exit Function
Set RegEx=New RegExp
RegEx.IgnoreCase=True
RegEx.pattern="(\&)?page=(\d)+"
DRexPage=regEx.replace(Str,"") '(Str,"$1")
Set RegEx=Nothing
End Function
在分頁系統(tǒng)里面用到的把page后面得東西都給丟掉
相關(guān)文章
javascript 正則表達(dá)式(二) 使用技巧說明
javascript 正則表達(dá)式(二) 使用技巧說明2010-05-05常用正則表達(dá)式及評注-學(xué)習(xí)正則必備
2008-02-02vbs:一段比較精簡的代碼實現(xiàn)取得字符串的"字節(jié)"數(shù)
vbs:一段比較精簡的代碼實現(xiàn)取得字符串的"字節(jié)"數(shù)...2007-04-04js中exec、test、match、search、replace、split用法
exec、test、match、search、replace、split在JS中用的很頻繁,在網(wǎng)上看到對這些方法的總結(jié),就轉(zhuǎn)過來了,作個記錄2012-08-08