[ad_1]
if(/\d/.test(str) && !/\d.*\d/.test(str)) {
// Exactly one digit
}
7
[ad_2]
solved Need javascript validation for one, and only one, numeric in password [closed]
[ad_1]
if(/\d/.test(str) && !/\d.*\d/.test(str)) {
// Exactly one digit
}
7
[ad_2]
solved Need javascript validation for one, and only one, numeric in password [closed]