Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?=^.{8,}$)(?=[!@#%?&*!\\|]{1,})(?=^\S*$).*$
/
gm

Description

Password, 8 chars, at least one special char

Submitted by Roman Kocherezhchenko - 2 years ago