• Home
  • Google Analytics
    • Customizations
    • For Ecommerce
  • Speaking
  • About
    • About Me
    • Contact Me
    • Disclaimer and Privacy Policy

Analytics Talk

Digital Analytics for Business

You are here: Home / Resources / Regular Expression Testing Tool

Regular Expression Testing Tool

Posted: December 6, 2006 13 Comments

Over the past few months, Robbin Steif from LunaMetrics has been writing a series of posts about regular expressions. The series is amazing and I highly recommend it to anyone learning reg ex (as the geeks call it).

In one of Robbin’s posts she mentions a small, reg ex testing tool that we have on the EpikOne website. This tool was created by Alex, one of the founders of EpikOne. It is easy to access, easy to use and incredibly helpful. I’ve decided to repost the tool here to increase it’s visibility.

Regular Expression Testing Tool

Target String:
Regular Expression:
Result:

How to use it

  1. Enter the text that you want to apply the regular expression to in the ‘Target String’ field
  2. Enter your regular expression in the ‘Regular Expression’ field
  3. Click the ‘Submit’ button

How to interpret the results

  • If the regular expression matches any part of the target string then the ‘Result’ field will contain the word ‘Match:‘ followed by the part of the target string that was matched by the regular expression.
  • If the regular expression does not match any part of the target string then you will see ‘No Match‘ in the result field.
  • If you use parenthesis in your regular expression to capture part of the target string, then the tool will return the data stored in the parenthesis. The result field will contain both the part of the string that was matched AND the values in the parenthesis. First, you will see the term ‘Match:‘ followed by the part of the string that was matched. Then you will see the value stored in each set of parenthesis. Here’s an example.
Match: [matched part of string], [parenthesis value 1], [parenthesis value 2], [parenthesis value X]

Filed Under: Resources Tagged With: google-analytics, regular-expressions, tools

Comments

  1. ajp says

    January 6, 2007 at 12:46 pm

    Also take a look at http://regexlib.com/. no need to completely re-invent the wheel.

    Reply
  2. Justin says

    January 8, 2007 at 9:20 am

    Hi ajp,

    Thanks for the link! That’s a great site.

    Justin

    Reply
  3. Mike says

    February 21, 2007 at 2:15 am

    Hey Justin — where’s the option to test advanced filters? ;-)

    Reply
  4. Justin says

    February 21, 2007 at 9:43 am

    Hey Mike, great idea! I’ll get it done in all my copious spare time ;)

    Reply

Trackbacks

  1. Increasing your Website’s Conversion Rate » Blog Archive » Regular Expressions question and GA: Search/Replace says:
    April 16, 2007 at 12:28 pm

    […] In the process of writing this, I found that there is a whole piece on the Epikone blog about how to interpret their results. Robbin Steif LunaMetrics […]

    Reply
  2. links for 2008-05-04 says:
    May 4, 2008 at 12:39 am

    […] Regular Expression Testing Tool Easy to access, easy to use and incredibly helpful. (tags: regex tools analytics google googleanalytics) […]

    Reply
  3.   Google Analytics Filters (& Reguliere Expressies) - deel 2 | Webanalisten.nl says:
    January 19, 2009 at 6:39 am

    […] vind je onder andere op LunaMetrics. Wil je jouw reguliere expressies testen? Dat kan ook, dat kan hier en […]

    Reply
  4.   Google Analytics Filters (& Reguliere Expressies) - deel 2 | Webanalisten.nl says:
    January 19, 2009 at 6:39 am

    […] vind je onder andere op LunaMetrics. Wil je jouw reguliere expressies testen? Dat kan ook, dat kan hier en […]

    Reply
  5.   Google Analytics Filters (& Reguliere Expressies) - deel 2 | Webanalisten.nl says:
    January 19, 2009 at 6:39 am

    […] vind je onder andere op LunaMetrics. Wil je jouw reguliere expressies testen? Dat kan ook, dat kan hier en […]

    Reply
  6.   Google Analytics Filters (& Reguliere Expressies) - deel 2 | Webanalisten.nl says:
    January 19, 2009 at 6:39 am

    […] vind je onder andere op LunaMetrics. Wil je jouw reguliere expressies testen? Dat kan ook, dat kan hier en […]

    Reply
  7. Tutorial sobre Google Analytics: 4. Objetivos, Conversión de objetivos, ruta de redireccionamiento y Funnels | Hello Google says:
    February 23, 2009 at 12:22 pm

    […] Concordancia de expresiones regulares: Las expresiones regulares permiten definir un objetivo que abarca múltiples URLs. Este tipo de oncordancia es útil cuando se trabaja con múltiples subdominios y/o páginas dinámicas.Por ejemplo podríamos definir un objetivo que corrsponda con urls del tipo:rss.hellogoogle.com/subscribe/gracias_por_suscibirse.php?auth=true&id=6687639082 mail.hellogoogle.com/subscribe/gracias_por_suscibirse.php?auth=false&id=2389098822Con esta expresión regular:^/subscribe/gracias_por_suscibirse.php?id=true|false&id=.*Recuerde que tiene a su disposición varias herramientas para testar expresiones regulares. […]

    Reply
  8. analitycs » Blog Archive » ¿Qué es un objetivo ? says:
    December 12, 2009 at 8:22 am

    […] Recuerde que tiene a su disposición varias herramientas para testar expresiones regulares. […]

    Reply
  9. 30 seconds to Tambu · Un esempio di filtro “cerca e sostituisci” in Google Analytics says:
    March 16, 2011 at 6:25 am

    […] Non funziona perché la regular Expression è sbagliata. Io per controllarle velocemente uso questo tool di EpikOne: http://www.epikone.com/tools/regular-expression-filter-tester […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

My Books

Google Analytics by Justin Cutroni
Learn More on Amazon.com

Performance Marketing co-authored by Justin Cutroni
Learn More on Amazon.com

Recent Posts

  • Understanding the Google Analytics Cohort Report
  • Using Offline and Online data to drive Google Analytics Remarketing
  • Understanding Cross Device Measurement and the User-ID
  • Universal Analytics: Now out of beta!
  • Advanced Content Tracking with Universal Analytics

Categories

  • About Google Analytics (25)
  • Analysis (52)
  • Analytics Strategy (3)
  • Campaign Tracking (14)
  • Ecommerce (8)
  • Event Tracking (10)
  • Remarketing (2)
  • Reporting (10)
  • Resources (7)
  • Tag Management (5)
  • Tips (25)
  • Tracking (52)
  • Uncategorized (64)
  • Universal Analytics (9)
  • Web Analytics (15)

Copyright © 2023 ·News Pro Theme · Genesis Framework by StudioPress · WordPress