Last active
July 10, 2018 11:23
-
-
Save robhammond/9cd41c5de979c8b1c1a3a8ce04cd05e3 to your computer and use it in GitHub Desktop.
Revisions
-
robhammond revised this gist
Jul 10, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ CASE WHEN (REGEXP_MATCH(Page/Screen Path (Clean),".*?/all-about/.*?")) THEN "Topic" WHEN (REGEXP_MATCH(Page/Screen Path (Clean),".*?-[0-9]+$")) THEN "Article" WHEN (REGEXP_MATCH(Page/Screen Path (Clean),"^https?://[^/]+/.*?/$")) THEN "Section" WHEN (REGEXP_MATCH(Page/Screen Path (Clean),"^https?://[^/]+/$")) THEN "Home" ELSE "(Other)" END -
robhammond revised this gist
Jul 10, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ CASE WHEN REGEXP_MATCH(Landing Page,"/all-about/") THEN "Topic" WHEN REGEXP_MATCH(Landing Page,"-[0-9]+$") THEN "Article" WHEN REGEXP_MATCH(Landing Page,"[^/]+/[^/]+/$") THEN "Section" WHEN REGEXP_MATCH(Landing Page,"[^/]+/$") THEN "Home" ELSE "(Other)" -
robhammond created this gist
Jul 10, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ CASE WHEN REGEXP_MATCH(Landing Page,"/all-about/") THEN "Topic" WHEN REGEXP_MATCH(Landing Page,"-[0-9]+(\?.*)?$") THEN "Article" WHEN REGEXP_MATCH(Landing Page,"[^/]+/[^/]+/$") THEN "Section" WHEN REGEXP_MATCH(Landing Page,"[^/]+/$") THEN "Home" ELSE "(Other)" END