title: ng-pattern Validation not working
body: <p>I am trying to do validation with angular and Bootstrap but for some reasons ng-pattern validation is not working in Zip Code. Any help will be great in this.</p>
  
  <p>Here's <a href="http://jsfiddle.net/UGLjh/65/" rel="nofollow"><strong>FIDDLE LINK</strong></a></p>
  
  <p>Not able to paste full code, but here is how I am attempting to use the <code>ng-pattern</code> directive:</p>
  
  <pre><code>&lt;input type="text" class="form-control" id="zipCode" name="zipCode"
         ng-model="auth.zip" ng-pattern="^(\d{5}-\d{4}|\d{5})$" required=""&gt;
  </code></pre>