Regular Expressions for Google Analytics: OK, I did it
I was finally inspired by Alan, who reads this blog using his Blackberry on the Paris Metro. (Truly a world wide web.) Also inspiring were the comments of an anonymous poster, who wrote that all the Regular Expressions (RegEx) posts were incredibly helpful, but couldn’t I please make them easier to access? So I did it, they are all beautifully threaded now. I even fixed awful typos in the Summary/Intro post and the ^ post (and you know, typos are the worst when you are a newbie learning a technical topic, you can spend hours trying to understand a topic, only to finally learn that the author was just lazy.)
Backslashes \
Dots .
Carats ^
Dollars signs $
Question marks ?
Pipes |
Parentheses ()
Square brackets []and dashes -
Plus signs +
Stars *
Regular Expressions for Google Analytics: Now let’s Practice
Bad Greed
RegEx and Good Greed
Intro to RegEx
{Braces}
Minimal Matching
Lookahead
Robbin
Related posts:


February 26th, 2007 at 1:42 pm
Thank you!!!! Your anonymous reader!
February 26th, 2007 at 2:05 pm
Hey, I’ve got a question, I finished your tutorial, and then set up an advanced filter in GA, and I’m not getting the results i expected.
Here’s what I’ve got:
Field A : Request URI : (Donate|Ecommerce|EcommerceCheckout)/(\d+)(.*)
Field B nothing
Output to: request URI: $A1$A3
Override output field, ok.
But I’m still not removing a string of numbers from my urls. Help!
February 26th, 2007 at 2:34 pm
Send me email, to my last name at lunametrics.com (Actually, I would be happy to have you be anonymous, I just need to ask you more questions to understand better.)
Robbin
October 31st, 2008 at 10:01 am
[...] everything you could possibly want to know about regular expressions in Google Analytics on this LunaMetrics blog post. Posted in [...]
November 3rd, 2008 at 5:23 pm
[...] been very helpful in achieving the desired results. Lunametrics provides a comprehensive guide on Using Regular Expressions in Google Analytics. Rate this: 3.2 Make a [...]
January 19th, 2010 at 6:01 pm
[...] They just made no sense for me. The best resources for me were the LunaMetrics blog with their RegEX series (old but good stuff) and a RegEX tool (or this one) for trying things out on the [...]