I am using regex for validate password
this is my regex configuration
@"^(?!.*[\\s])(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{6,32}$"