I need the following check for strong password validation:
- At least 7 chars
- At least 1 uppercase char (A-Z)
- At least 1 number (0-9)
- At least one special char
I found and tweaked a RegEx and it's like this (sorry, I lost the reference...):
^.*(?=.{7,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@'#.$;%^&+=!""()*,-/:<>?]).*$
It's working in C#
except for the fact that I need to match any special char, and I really mean ANY. In other words, I need that the "special char" be anything but numbers and lower/uppercase letters.
Edit:
For the sake of clarity, let's consider that accents are special chars, so é
, ñ
and the like should be considered special chars in the context of this question.