skip to Main Content

Text password using JavaScript

I wanted a password with js that accepts both lowercase and uppercase letters. I'm also not sure if this code is the most correct for a password. The password would be the insertion of certain words and phrases (e.g.: human,…

VIEW QUESTION

Regex match with a list of special characters is not working for comma, semicolon etc in Angular – Javascript

I am using this pattern for password validation. Validators.pattern('((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!"#$%&`{|}~()*+,-.\:/;<=>?@[\]^_/']).{10,})'), But this validation is not working for ,;() etc but working for!@#$%^& These characters are need to be accepted- !"#$%&'()*+,-./:;<=>?@[]^_`{|}~ Can anybody suggest where the error is?

VIEW QUESTION
Back To Top
Search