JSFiddle - React, Tailwind, and code Playground
HTML
<form name="myForm">
<input name="input" type="text" ng-pattern="/^INSERT_REGEX_HERE$/" />
<div ng-show="myForm.input.$dirty && myForm.input.$error.pattern">DOES NOT MATCH REGEX</div>
</form>