[Solved] how to use json array for password validation?
Don’t put the / around the expression. Then you can convert it to a regular expression with new RegExp, and test the password with it. You can loop with .every(), which will perform tests as long as they’re successful. var pwdarray = { “pwd”: [{ “TEXT”: “Password must be at least 6 character(s) long.”, “EXPRESSION”: … Read more