I am using ng-pattern to check for a regular expression The pattern should contain 3 letters and 2 numbers in a group.
Example G-31SSD or G-EEE43
I am currently using pattern which matches only the second one
ng-model="newGroup.groupCode" ng-pattern="/^\b[gG][-][a-zA-Z]{3}\d{2}\b$/"
How can I make it to check for both the condition or can I write OR condition for ng-pattern