title: How to find cookies which begin with string "word" and extract information from string with char #
body: <p>I have cookies with values in it, and between values I put # so I can later extract data from cookies. </p>
  
  <p>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.</p>
  
  <pre><code>var name = "word" + "" + n1 + "" + n2 + "" + n3;
  var value = v1 + "#" + v2 + "#" + v3 + "#" + v4 + "%";
  </code></pre>
  
  <p>name is cookie name, and value is cookie value. </p>
  
  <p>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.</p>
  
  <p>I have to look all cookies names and if cookie name begin with "word" like </p>
  
  <p>"word and here is the rest of the string". </p>
  
  <p>That is first part. </p>
  
  <p>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.</p>
  
  <p>Is it now clear what I need?</p>