Regular Expressions 101

Community Patterns

Community Library Entry

-2

Regular Expression
PCRE (PHP <7.3)

/
(?=.*[A-Z])(?=.*[a-z]).*
/

Description

a regular expression validate the passowrd. The criteria is that the password should contain atleast one upper case and one lower case letter.

Submitted by HMK - 10 years ago