Forum Discussion
Stefan_126426
Jan 03, 2013Nimbostratus
Ahhh, begining to see:
lindex 0 contains: cookiename=value;
lindex 1 contains: flags, i.e. "path=/; HttpOnly;" etc
Oh just found the TCL Reference on sourceforge, thats a big help. Curly braces are so the Irule does not interpret it as a command.
OK so for the format used in scan:
% specifies a conversion
[^chars] Substring is one or more characters not in chars
So {%[^=] Match anything up to the first = match
=% OK the % starts the next conversion, but I am confused by the =. Is it indicating "Match the first = then start the new conversion" after?
Then match on [^;] as the end of the conversion, these conversions are placed in the subsequent variables in order of matching. So unless the optional positional specifier is called.. Is it possible if there is no first match i.e. blah= is missing than this would mean that the second match would become the first and enter the first var?
This is what I get for being a Windows admin and C developer... sounds like I should have been learning TCL and lisp ;-)