google analytics - Extracting query parameter value with POSIX regex -


tinkering around google analytics advanced filters.

i know if request uri /?w=value1&x=value2&y=value3 , want extract value of x, regex x=([^&]*)

my question why work?

google support says following:

[] = match 1 item in list

^ = match beginning of field

* = match 0 or more of previous item

how come give me value of query parameter x in x=([^&]*)

any appreciated. thanks!

the ^ in [^&]* means character not in list. ^ character acts 'not' when in brackets [] , beginning of string when not in brackets. putting together, x=([^&]*) after x= stop when hits next &.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -