Menu
I’m trying to test a string to ensure it has at least 2 numbers in it.
for example:
g3hhhbf6mjk
should return true. (or in my case add 1 to the strength value)
i have:
var at_least_two_numbers=/[0-9][0-9]/ ;
if (string.match(at_least_two_chars))
strength++ ;
that only works if i have 2 numbers in a row, also i don’t want it to test only for 2, its 2 or more.
can anyone help me?
cheers guys