title: AngularJS: Input Validation - How to force a 100% RegEx match?
body: <p>When using the <code>ng-pattern="/REGEX/"</code> on an <code>input</code>, AngularJS checks if a part of the entered value matches the RegEx.</p>
  
  <p><strong>How can I tell AngularJS that I want to throw an error as soon as 1 character doesn't match the RegEx?</strong></p>
  
  <p><strong>Example</strong></p>
  
  <ul>
  <li>String: <code>4d</code></li>
  <li>RegEx: <code>[a-zA-Z\x7f-\xff ]+</code></li>
  <li>RegEx matches: <code>d</code></li>
  </ul>
  
  <p>(Feel free to test the RegEx here: <a href="http://regex101.com/" rel="nofollow">http://regex101.com/</a>)</p>