title: How to apply Multiple ng-pattern with or condition in input box
body: <p>Condition first: /^([a-zA-Z]{5})(\d{4})([a-zA-Z]{1})$/;
  Condition second : (/^([a-zA-Z]){4}([0-9]){5}([a-zA-Z]){1}?$/g)</p>
  
  <p>html</p>
  
  <pre><code> &lt;input type="text" ng-model="userDetail.id" name="uid" required="" ng-pattern="regx"  /&gt;
  
  
  Angular 
  scope.regx= Condition first or condition Second
  
  scope.regx=/^([a-zA-Z]{5})(\d{4})([a-zA-Z]{1})$/ || /^([a-zA-Z]){4}([0-9]){5}([a-zA-Z]){1}?$/g;  not working 
  </code></pre>