How would I use regex to split the set-cookie header into name and value:
Eg. test_cookie=Cookie+check; path=/; domain=.Site.com
name: test_cooke
value: Cookie+check; path=/; domain=Site.com
How would I use regex to split the set-cookie header into name and value:
Eg. test_cookie=Cookie+check; path=/; domain=.Site.com
name: test_cooke
value: Cookie+check; path=/; domain=Site.com
This would have the name in the first group, and value in the second
Dim r as Regex = new Regex("(.+?)=(.+)")
Dim cookie as string = "test_cookie=blah;bleh"
Dim name as string = r.Match(cookie).Groups(1).ToString()
Dim value as string = r.Match(cookie).Groups(2).ToString()