Skip to content

Instantly share code, notes, and snippets.

@purem
Created September 8, 2011 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purem/1203627 to your computer and use it in GitHub Desktop.
Save purem/1203627 to your computer and use it in GitHub Desktop.
var regex = new RegExp("(\w+)[=] ?\"?(\w+)\"?");
while (match = authHeader.match(regex))
{
console.log(match);
words.push(match[1]);
}
console.log(words);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment