Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-08-17 17:13
Flavor·PCRE2 (PHP)

/
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[-+_!@#$%^&*., ?])
/
gm
Open regex in editor

Description

Determines if string contains: 1 Uppercase 1 Lowercase 1 Number 1 Symbol

Submitted by Rae