title: How to apply Multiple ng-pattern with one input control
body: <p>I am trying to Validate Postal code and Phone Number in Text box using Angularjs. But it's not working</p>
  
  <pre><code> &lt;input type="text" class="form-control errorfields" id="postalCode"
   name="postalCode" ng-model="postalCode" 
   ng-pattern="/(^(\d{5}(-\d{4})?|[A-CEGHJ-NPRSTVXY]\d[A-CEGHJ-NPRSTV-Z]
    ?\d[A-CEGHJ-NPRSTV-Z]\d)$)||(^[0-9])/"  required&gt;
  </code></pre>