Regular Expressions 101

Community Patterns

PasswordCheckCapitalNumberSign

0

Regular Expression
PCRE (PHP <7.3)

/
(?=.*[!@#$%^&*,.])(?=.*[A-Z])(?=.*[0-9]).*
/

Description

Password contain a capital letter, a number and one of the following signs: [!@#$%^&,.] (?=.[!@#$%^&,.])(?=.[A-Z])(?=.[0-9]).

Submitted by anonymous - 5 years ago