if(($new_password !~ /\d/) || ($new_password !~ /[a-zA-Z]/) || ($new_password !~ /\W/)) { return (0, 'Your password must contain at least 1 letter, 1 nu +mber, and 1 special character'); }
In reply to Regex Password validation by tcf22
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |