Skip to content

Instantly share code, notes, and snippets.

@purem
Created September 8, 2011 15:06
Show Gist options
  • 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