Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?=.*?[A-Za-z])(?=.*?[()`~!@#$%^&*()_\+\-\=_|{}\[\];<>,.?\/])(?=.*?[0-9])[A-Za-zd()`~!@#$%^&*()_+-=_|{}\[\];<>,.?\/]{8,40}$
/

Description

必须包含字母数字和特殊字符

Submitted by anonymous - 5 months ago