title: ng pattern for allowing only '-' in input text box
body: <p>Is there any pattern that will allow only '-' in the input text box and deny entering other special characters like @, #, $ etc.I tried with the pattern <code>ng-pattern="/^[a-zA-Z0-9]*$/"</code> which will deny all special characters from being entered in the field.</p>
  
  <pre><code>   &lt;form name="myForm"&gt;
      &lt;input type="text" ng-pattern="/^[a-zA-Z0-9]*$/" ng-model="name" name="name"&gt;
      &lt;/form&gt;
    &lt;span class="error pop_up"  ng-show="myForm.name.$error.pattern"&gt;Special Characters are not allowed&lt;/span&gt;
  </code></pre>