-
credits
-
source article
- Paul Koks | Online Metrics
- published Feb 24, 2015
-
this map
- Eric Bouchet
- created Jan 2017
-
icons
-
iconfinder
- inside XMind 8
-
Overview
-
Pipe
|
- or
-
Dot
.
- match any character
- equals one character
-
Asterisk
*
- zero or more of the previous item
-
Dot-Asterisk
.*
- zero or more random characters
-
Backslash
\
- turn special (RegEx) characters into normal characters
-
Caret
^
- begins with…
-
Dollar
$
- ends with…
-
Question mark
?
- last character optional
- useful for targeting misspellings
-
Parentheses
()
- group
-
Square Bracket
[]
- list
-
Dashes
-
-
complex list
- [a-z] all lower-case letters
[A-Z] all upper-case letters
[0-9] all numbers
[a-zA-Z0-9] all lower-case and upper-case letters and numbers
-
Plus
+
- one or more of the previous characters
-
Curly Bracket
{}
-
repetition modifier
- {1,2} = at least 1, no more than 2
- {3} = 3 times
-
5 effective ways
to use
Google Analytics RegEx
- Applying report filters
- Setting up filters
- Setting up goals
- Defining funnel steps
- Setting up segments
-
Test
-
in Google Analytics
- Report filters
-
Online tools
- RegEx tester
- Regex101
-
Cheat Sheet
-
with Google Analytics API
-
=~
- contains a match for the regular expression
-
!~
- does not match regular expression
-
2 rules to remember
- max 128 characters
- CasE sensitive