Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

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

Description

Synopsis

The subject password must fullfill several criterias to ensure it's have an acceptable level of minimal security.

Success criterias

  • contains at least 1 number (0-9)
  • contains at least 1 uppercase letters
  • contains at least 1 lowercase letters
  • contains at least 1 non-alpha numeric number
  • password is 8-16 characters without whitespaces (space, tab, newline)
Submitted by Soma Szelpal - 7 months ago (Last modified 7 months ago)