Reputation: 14148
I have requirements for the password as follows
I don't know how to create a regular expression for the above string requirement.
EDIT: Here is the typical password I could use
Mhal@qat1t
Upvotes: 0
Views: 43
Reputation: 526
Since you didn't specify which characters it can/cannot have, I made it like this:
^(?=.*?[A-Z])(?=.*?\d)(?=.*?[^\da-zA-Z])\S{6,}$
Upvotes: 1