title: Javascript regex whitespace is being wacky
body: <p>I'm trying to write a regex that searches a page for any script tags and extracts the script content, and in order to accommodate any HTML-writing style, I want my regex to include script tags with any arbitrary number of whitespace characters (e.g. <code>&lt;script type = blahblah&gt;</code> and <code>&lt;script type=blahblah&gt;</code> should both be found). My first attempt ended up with funky results, so I broke down the problem into something simpler, and decided to just test and play around with a regex like /\s*h\s*/g.</p>
  
  <p>When testing it out on string, for some reason completely arbitrary amounts of whitespace around the 'h' would be a match, and other arbitrary amounts wouldn't, e.g. something like "       h    " would match but "  h        " wouldn't. Does anyone have an idea of why this occurring or the the error I'm making?</p>