Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2.     var regex = new RegExp("(\w+)[=] ?\"?(\w+)\"?");
  3.  
  4.     while (match = authHeader.match(regex))
  5.     {
  6.         console.log(match);
  7.         words.push(match[1]);
  8.     }
  9.  
  10.     console.log(words);