Regular Expressions 101

Community Patterns

Password, 8 chars, at least one special char

0

Regular Expression
PCRE2 (PHP >=7.3)

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

Description

Loading markdown...
Submitted by Roman Kocherezhchenko - a year ago