I have this regex: https://regexr.com/3stq1 ... but it's allowing whitespaces. How can I not allow whitespaces?
"/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[#?!@$%^&*-_]).{6,24}$/gm"
I want the password to be:
- at least 6 and max 24 characters
- must contain at least 1 uppercase letter, 1 lowercase letter, and 1 number
- must contain special character
- must not contain whitespace