Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])[0-9a-zA-Z !"#$%&'()*+,-.\/:;<=>?@\[\\\]^_`{|}~]{8,255}
/

Description

Password should contain at least 8 symbols, one lower case, one upper case and one number.

https://owasp.org/www-community/password-special-characters

Submitted by Tahiaji - 2 years ago