var strength = 1; var arr = [/{5\,}/, /[a-z]+/, /[0-9]+/, /[A-Z]+/]; jQuery.each(arr, function(i, regexp) { if(this.value.match(regexp)) strength++; });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)