1
Regular Expression for password validation. I want it to be possible at least a minuscule letter, a capital letter, at least a number and special characters (/,_,-, ... ).
Example: $regex = '#^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$#';
How can I add more special characters?
Thank you for your reply, but I do not want to oblige you to have a minimum of special characters.
– akm
Now you can have as many specials as you want, including none.
– Thiago Santos
@akm I think I finally understood your need and updated the response with external link, improved?
– Thiago Santos
cool! (+1)
^(?=.*[a-zç])(?=.*[A-ZÇ])(?=.*\d).{8,}$
– JJoao