Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Regex Expression not working for password

$
0
0

I am trying to make a regex expression on mockaroo for Password. I want my password to have at least 1 lowercase character, 1 uppercase character, 1 digit and 1 special character. The min length should be 8. The regex pattern I am using is:
^(?=.?[A-Z])(?=.?[a-z])(?=.?[0-9])(?=.?[#?!@$%^&*-]).{8,}$. But this isn’t giving the required results. Please help.


Viewing all articles
Browse latest Browse all 2665

Trending Articles