ASP正则函数替换分页后的参数
更新时间:2008年07月25日 23:44:48 作者:
在分页系统里面用到的把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
在分页系统里面用到的把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
在分页系统里面用到的把page后面得东西都给丢掉
相关文章
iOS 中使用正则表达式判断身份证格式及银行卡号格式是否正确(推荐)
这篇文章主要介绍了iOS 中使用正则表达式判断身份证格式及银行卡号格式是否正确(推荐)的相关资料,需要的朋友可以参考下2016-12-12


最新评论