title: How do i use Regular expression in ng-pattern to avoid certain special character?
body: <p>I have to avoid some some special characters in ng-pattern. I can able to avoid all special characters by using following code </p>
  
  <pre><code>ng-pattern="/^[a-zA-Z0-9]*$/"
  </code></pre>
  
  <p>But I have to avoid only these charecters</p>
  
  <pre><code>%;:'",&lt;&gt;
  </code></pre>
  
  <p>How to do write ng-pattern</p>
  
  <p><strong>Update:</strong> </p>
  
  <pre><code>&lt;input type="text" class="txt_box" ng-disabled="filechoosen" name="file_name" ng-pattern="/^[^%;:\x27\x22,&lt;&gt;{}[\]\/]*$/" ng-model="filenameedit" id="filenameedit"&gt;
  &lt;div style="color:Red"  ng-show="file_name.$error.pattern "&gt;These charecters are not allowed&lt;/div&gt;
  </code></pre>