i'm trying to extract a value from a Cookie. cookies are organized with [name]=[value] pairs separated by a ';'. so if i have a cookie string like so:
username=user;password=pass;session="4341234556";
in this example, i only want the value '4341234556' without the quotes.
the value of the session variable is, of course, different for each request made. how can i get just the value of session with a regular expression (without the quotes)? keep in mind that the ordering of the variables is not guaranteed to be the same each time it is returned.
also, i would like to ignore any whitespace characters NOT contained in the value.