title: Javascript regex to reject non ASCII-US characters
body: <pre><code>^[^\x00-\x1F\x7F-\xFF]+$
  </code></pre>
  
  <p>This regex will properly <strong>fail</strong> to match a string that contains <em>non-printing</em> (hex 00-1f) or <em>ASCII extended</em> characters (hex 80-FF), but, unlike PHP, lets non-ASCII utf-8 characters  pass. (eg. 日本واستقرارهहिन्दीދިވެހިބަސްગુજરાતી한)</p>
  
  <p>Looking at the <a href="http://en.wikipedia.org/wiki/UTF-8" rel="nofollow noreferrer">wikipedia page</a> on UTF-8 all of those should fall in the 80-ff range. Does anyone know what I'm missing?</p>
  
  <p>Also, if you could explain how to ignore quoted text, you would be my hero forever.</p>