Use regexp validator to restrict the input to any Regular Expression.
<input type="text" ng:validate="regexp:expression[:msg]"/>
angular.validator.regexp(value, expression[, msg])
value – {string} –
value to validate
expression – {string|regexp} –
regular expression.
msg(optional) – {string} –
error message to display.