I want to validate password entered by user for following criteria :  Password should be at least 8 characters long and should contain one number,one character and one special character.  For it I used following regular expression :  ^(?=.*[A-Za-z])(...
I'm having an ng-pattern that validates for a ration like 4:6 as shown below:  ng-pattern="/^(\d+):(\d+)$/"   I want also to validate if decimal numbers are entered as rations along with the above validation.Example :5.4:7.1 I trid by giv...
I have a ng-pattern validation for a regex of ^[^\./:*\?\"<>\|]{1}[^\/:*\?\"<>\|]{0,254}$ which basically tests the invalid chars in filepath and teh limit. but when i have the ng-pattern specified as    ng-pattern = "^[^\\\./...
I use this to validate a password that has to have 8 characters, one capital letter and numeric but when I add an asterisk to it it throws an error saying passwords do not match, this only happens using the asterisk.  Any help will be appreciate it...
Is there any pattern that will allow only '-' in the input text box and deny entering other special characters like @, #, $ etc.I tried with the pattern ng-pattern="/^[a-zA-Z0-9]*$/" which will deny all special characters from being e...
Say I have a textbox validated by ngPattern that is currently valid.  I now change the regex to one that does not match the textbox's value.  Angular does not immediately pick up that the textbox is now invalid - the user must make a change (eg....
I have a form in angular where the inputs (name, email, phone number, ect) are generated using an angular Directive:      .directive('camposProductos', function () { return {     restrict: 'AEC',     template: '<div class="...
I have have the regular expression   $scope.pa = /^([\[email protected]#\$]+)$/i which is working fine for my requirements. Now I want to restrict this regular expression so that it can allow only 0 to 15 characters. So I have changed it to  $scope.pa = /^([\w-~...
`http://plnkr.co/edit/kAt9B3GrO8m8TT7lUHt6?p=preview`   Hey friends, can you please tell me how to reset form values in less steps instead of making each and every value null?   I have a pattern allowing alphabets and when I try to reset form, I want...
In a web application that we are building, we came across some weird bug that only happens with Internet Explorer.   The input validation as seen in this plunker works fine in all browsers except in IE (we have to support IE10+). We use type="num...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.