I need to have following password validations :
- At least Min Characters 8 and Maximum Characters 15
- At least One Number and 1 special characters from (! @#$%^&*-=+?.);
- At least One lower case letter
- Password shouldn't be sub strings of username and email (min length 3 and max length 15).
- Password should be case sensitive.
I have also looked these answers but I am confuse , should I use Input filters to achieve this or Regex?
Any help will be appreciable. It will be great if you guyz provide a working solution.