Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^((?=.*[a-z])(?=.*[A-Z])(?=.*[\d])(?=.*[@#%$£&*])\S{8,50})$
/
gm

Description

Vérifie si le mot de passe contient

  • Entre 8 - 50 caractères
  • 1 majuscule
  • 1 minuscule
  • 1 symbole
Submitted by anonymous - 3 years ago