【发布时间】:2019-11-23 20:16:04
【问题描述】:
我正在使用 REGEXP_EXTRACT 获取 Google Data Studio 中 Page 维度的最后一条路径。页面 URL 有一个标识符,该标识符在所有可能的 URL 上都相同:
+------------------------------------------------------+
| Page |
+------------------------------------------------------+
| /ABC/something1/something2/something3/lastpath |
| /ABC/something1/something2/something3/last path |
| /ABC/something1/something2/something3/last-path |
| /ABC/something1/something2/something3/last last-path |
+------------------------------------------------------+
所以我想提取/something3/后面的最后一个路径,最后一个目录下的所有值。
这是我得到的:
REGEXP_EXTRACT(Page,'/ABC/([^/]+/){3}')
但这仅匹配/something3/ 目录。
【问题讨论】:
标签: google-analytics regex-negation regular-language google-data-studio