ng-pattern not working with dynamic regular expressions
When working with dynamic regular expressions in AngularJS, especially with ng-pattern, you might encounter issues because ng-pattern expects a static regular expression or a string that represents a regular expression…..