Regular Expressions 101

Community Patterns

Community Library Entry

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 - 6 years ago