Utilizing ng-pattern to validate a regular expression. The pattern must include 3 letters and 2 numbers in a group.
For example: G-31SSD or G-EEE43
Currently, the pattern only matches the second example.
ng-model="newGroup.groupCode" ng-pattern="/^\b[gG][-][a-zA-Z]{3}\d{2}\b$/"
Is there a way to adjust it to match both conditions, or can I write an OR condition for ng-pattern?