Search found 4 matches

by Odenwalder
Tue Apr 21, 2009 4:46 am
Forum: Regex
Topic: Removing a query parameter if it contains certain values
Replies: 8
Views: 2354

Re: Removing a query parameter if it contains certain values

Now I see. This one did the trick

(.*?)[\?&]t_action=(index|play)

I just messed up with the positioning of the brackets. And the [ ] really only match each single character inside them.

Thanks for the advice everyone! And sorry for my slow brain.
by Odenwalder
Tue Apr 21, 2009 3:55 am
Forum: Regex
Topic: Removing a query parameter if it contains certain values
Replies: 8
Views: 2354

Re: Removing a query parameter if it contains certain values

That seems logical. The problem, in this case, is that I would have to group "index" and "play" somehow. Otherwise it would only match either "t_action=index" or "play". What would you suggest, how to separate certain defined character strings using an OR like...
by Odenwalder
Tue Apr 21, 2009 2:27 am
Forum: Regex
Topic: Removing a query parameter if it contains certain values
Replies: 8
Views: 2354

Re: Removing a query parameter if it contains certain values

Hi and thanks for your response, I am not quite sure which script language Google Analytics is using, but the documentation on filters says that with the square brackets [ ], you can group elements, the | sign serves as a logical OR, and the brackets ( ) are used to define their content as a charact...
by Odenwalder
Mon Apr 20, 2009 8:25 am
Forum: Regex
Topic: Removing a query parameter if it contains certain values
Replies: 8
Views: 2354

Removing a query parameter if it contains certain values

Hi everybody, I am currently trying to build a search/replace filter in Google Analytics, which removes certain query parameters of a URI. I have a query parameter "t_action", which has a number of possible values. I am trying to remove "t_action" from all URIs, but only if it co...