Community Patterns

Community Library Entry

36

Regular Expression
Created·2018-01-31 01:03
Updated·2023-07-19 15:28
Flavor·ECMAScript (JavaScript)

/
^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^\w\d\s:])([^\s]){8,16}$
/
gm
Open regex in editor

Description

This regex matches only when all the following are true:

password must contain 1 number (0-9) password must contain 1 uppercase letters password must contain 1 lowercase letters password must contain 1 non-alpha numeric number password is 8-16 characters with no space

Submitted by qho