I have cookies with values in it, and between values I put # so I can later extract data from cookies.
Now I need a way to search for cookies which begin with some word let say "word", and when I find that cookies I want to extract word from it and as I sad char # is indicator for that and char % is indicator for last char.
var name = "word" + "" + n1 + "" + n2 + "" + n3;
var value = v1 + "#" + v2 + "#" + v3 + "#" + v4 + "%";
name is cookie name, and value is cookie value.
I need function which will look for all cookies which begin with "word" and when find it, from cookie value extract v1 v2 v3 and v4 in 4 different variables.
I have to look all cookies names and if cookie name begin with "word" like
"word and here is the rest of the string".
That is first part.
Second part is when we find cookies with that name, now from cookie value which is string separated with # we need to separate 4 variables.
Is it now clear what I need?