<div class="regex-editor-element">
  <input name="regexField" type="text" class="form-control" ng-model="binding" placeholder="{{ placeholder || '' }}"
         ng-required="!optional" require-valid-regex>
</div>