如何通过ASP正则函数优化分页参数,实现长尾词搜索?

2026-03-30 08:190阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计101个文字,预计阅读时间需要1分钟。

如何通过ASP正则函数优化分页参数,实现长尾词搜索?

复制代码+代码如下:vbaFunction DRexPage(Str) Dim RegEx If IsNull(Str) Or Str= Then Exit Function Set RegEx=New RegExp RegEx.IgnoreCase=True RegEx.Pattern=(?i)(page=)(\d+) DRexPage=regEx.Replace(Str, $2) Set RegEx=NothingEnd Function

如何通过ASP正则函数优化分页参数,实现长尾词搜索?

复制代码 代码如下:
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

本文共计101个文字,预计阅读时间需要1分钟。

如何通过ASP正则函数优化分页参数,实现长尾词搜索?

复制代码+代码如下:vbaFunction DRexPage(Str) Dim RegEx If IsNull(Str) Or Str= Then Exit Function Set RegEx=New RegExp RegEx.IgnoreCase=True RegEx.Pattern=(?i)(page=)(\d+) DRexPage=regEx.Replace(Str, $2) Set RegEx=NothingEnd Function

如何通过ASP正则函数优化分页参数,实现长尾词搜索?

复制代码 代码如下:
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