What is wrong with this php regex
ereg("/^(?=.*[a-z])(?=.*[0-9])(?=.*[^a-zA-Z0-9])(?=.*[A-Z]).{7,19}$/","ABCabc123!!");
This is supposed to be a password validator, requiring alphabets in upper
and lowercases along with numbers special chars and mininmum length of
8....but the above returns false. What am I doing wrong?
No comments:
Post a Comment