Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$
/
gm

Description

Requirements:

  • 8 characters
  • 1 number
  • 1 symbol

Note: Case Insensitive

Submitted by Srinivas - 3 years ago