Google Analytics不再允许在其过滤器中使用否定前瞻功能.事实证明,创建自定义报告非常困难,只包括我希望包含的链接.
包含负向前瞻的正则表达式如果启用它将起作用:
test.com(\/\??index\_(.*)\.php\??(.*)|\/\?(.*)|\/|)+(\s)*(?!.)
Run Code Online (Sandbox Code Playgroud)
匹配:
test.com
test.com/
test.com/index_fb2.php
test.com/index_fb2.php?ref=23
test.com/index_fb2.php?ref=23&e=35
test.com/?ref=23
test.com/?ref=23&e=35
Run Code Online (Sandbox Code Playgroud)
并且不匹配(应该如此):
test.com/ambassadors
test.com/admin/?signup=true
test.com/randomtext/
Run Code Online (Sandbox Code Playgroud)
我正在寻找如何调整我的正则表达式仍然保持相同的匹配,但没有使用负前瞻.
谢谢!