Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?=.{8,})(?=.*\d)(?![.\n])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=_-]).*$
/

Description

The password entered is not in correct format (minimum eight characters, at least one uppercase, one lowercase, one number, and one special character)

Submitted by Nguyen Pham - 8 years ago