regex - Regular Expression in Google Analytics for two parts of string -
i need filter data in google analytics based on regular expression.
i need "if string contains "/secure//secure/common/callback" and, further down string contains words "true" include it.
i tried this: ^/secure//secure/common/callback*true
i added start there bunch of text in between "callback" , "true" returns 0 when should return thousands of records.
what regular expression use here?
use this:
^/secure//secure/common/callback.*?true
.
means character
.*
means character repeated o or more times
.*?
has same meaning except not greedy, matches less amount of characters possible, usefull if have more 1 matching (true
in case) in string.
Comments
Post a Comment