I\'m trying to write a password validator.
How can I see if my supplied string contains at least 3 different character groups?
It\'s easy enough to check if
This will do all that in one regex
^.*(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[\d\W])(?=.*[!@#\$%&/=?_\.,:;-\\]).*$