Regular Expressions 101

Community Patterns

Strong password

2

Regular Expression
ECMAScript (JavaScript)

/
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[#$%/()=¿?*+-])(?=(?:([\w\d])\1?(?!\1\1)))(?!(?=.*(palabra1|palabra2|palabraN))).{8,20}$
/

Description

Password require: lowercase, uppercase, symbol, not consecutive same letter/number, and not some specific words

Submitted by @cadete_kdt - 8 years ago