Regular Expressions 101

Community Patterns

1...34567...900

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

La contrasenã debe tener mínimo 8 caracteres y máximo 20, una letra, un número, un caracter especial y no puede repetir caracteres

Submitted by anonymous - 7 years ago