Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
.*^(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\W).*
/
gm

Description

be at least 8 characters with at least 1 Capital , 1 Lowercase , 1 special char , 1 number

Submitted by founet - 3 years ago