Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Walter Malta
Added: May 28, 2021 2:49 AM
Modified: May 28, 2021 2:50 AM
Views: 199
Tags: no tags
  1. $scope.myRegex = /[a-zA-Z]{4}[0-9]{6,6}[a-zA-Z0-9]{3}/
  2.  
  3. <input ng-model="widget.title" required ng-pattern="myRegex">