ng-pattern allow only letters, numbers, dot, underscore and dash
<p>How'd allow for an input using <code>ng-pattern</code> only: <code>letters</code>, <code>numbers</code>, <code>dot</code>, <code>underscore</code> and <code>dash</code>  <code>( . _ -)</code>?</p>

<p>Already tried the following ones</p>

<p>UPDATE:</p>

<pre><code>$scope.validationPattern = '/^[a-zA-Z\d\-\_]+$/';

&lt;input ng-model="model" type="text" ng-pattern="{{validationPattern}}" /&gt;
</code></pre>