<script type="text/javascript"><!--
google_ad_client = "pub-4490194096475053";
/* 内容页,300x250,第一屏 */
google_ad_slot = "3685991503";
google_ad_width = 300;
google_ad_height = 250;
// --></script><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中特定分页参数的VBA函数。该函数通过正则表达式来移除URL字符串中的&page=数字序列,确保链接在不同页面间的一致性。
348

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



