Regular Expressions 101

Sponso⁠rs

Community Library

Community Library Entry

37

Regular ExpressionOpen Workspace

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

Description
Created·2018-01-31 01:03
Updated·2023-07-19 15:28
Type·Match
Flavor·JavaScript

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
Open Workspace