<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
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后面得东西都给丢掉
去除URL分页参数
本文介绍了一种使用正则表达式从URL中移除特定分页参数的方法。该方法适用于分页系统的页面链接处理,通过匹配并替换的方式,实现对URL中'page='及其后数字的清除。
6311

被折叠的 条评论
为什么被折叠?



