Skip to content

Instantly share code, notes, and snippets.

@mcongrove
Created June 8, 2011 21:22
Show Gist options
  • Save mcongrove/1015435 to your computer and use it in GitHub Desktop.
Save mcongrove/1015435 to your computer and use it in GitHub Desktop.
getResponseCookies Regex
Test values:
cn1=cv1; Domain=something.org; Max-Age=89000000; Path=/eportal; HttpOnly, cn2=cv2; HttpOnly , cn3=cv3
cn1=cv1; Domain=something.what.org; Path=/eportal; HttpOnly, cn2=cv2; HttpOnly , cn3=cv3;
cn1=cv1; Domain=something.org; Max-Age=890000;,cn2=cv2, cn3=cv3
cn1=cv1; Domain=what.org; Expires=Fri, 21-Mar-2014 16:52:43 GMT; HttpOnly, cname2=cvalue2; HttpOnly
Expression:
([a-zA-Z0-9])+(?<!Domain|Path|Age|Expires)=([a-zA-Z0-9])+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment