title: RegEx for maximum length in JavaScript
body: <p>How can I limit the length of a string matching a RegEx</p>
  
  <p>I assumed that <code>var sixCharsRegEx = /^.{6,7}/</code> would only match strings of lengths 6 or 7</p>
  
  <p>but no: <a href="http://jsfiddle.net/FEXbB/" rel="noreferrer">http://jsfiddle.net/FEXbB/</a></p>
  
  <p>What am I missing?</p>