I'm taking a wild guess at what you want....
Do you also want it to detect if it is a strong password? (i.e. has symbols, numbers and letters)
You'll need to explain futher.