Never really used AngularJS and am having issues figuring out how to create a regex for an input to check/allow only first 2 characters to be letters & the rest numbers.
Hope this makes sense.
Using pugJS
.e-field
label.e-field__label(for='invoiceNr') Invoice Number
input#invoiceNumberInput.e-input(
ng-model='$ctrl.invoiceNumber'
name="invoiceNumber"
ng-required="true"
invoiceNr example: HN123123123
The ng-pattern was the answer. This is what I used:
ng-pattern="/^[a-zA-Z]{2}[0-9]{6,}$/"