13.07.2015 Views

ebook on regular expressions for Google Analytics - LunaMetrics

ebook on regular expressions for Google Analytics - LunaMetrics

ebook on regular expressions for Google Analytics - LunaMetrics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

wilder cardsThE p lUs SIgn+A plus sign matches <strong>on</strong>e or more of the <strong>for</strong>mer items, which, asusual, we’ll assume is the previous character. (It can be morecomplicated, but let’s start easy.) So the list of possible matches isclear: the <strong>for</strong>mer character. And the number of matches is clear:<strong>on</strong>e or more.Here’s an example from the world of literature: When a charactertrips and falls <strong>on</strong> his face, he often says Aaargh! Or maybe it’sAaaargh! or just Aargh! In any case, you could use a plus sign tomatch the target string, like this: aa+rgh. That will match aarghand aaargh and aaaaaaaaargh … well, you understand. Notice,however, that it w<strong>on</strong>’t match argh. Remember, it is <strong>on</strong>e or moreof the <strong>for</strong>mer items.Does anybody really use plussigns anymore? Sure they do– you may find that you usethis expressi<strong>on</strong> rarely, but the<strong>on</strong>e time you need it, it will bevery valuable.16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!