Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-04-26 08:45
Flavor·PCRE (Legacy)

/
((?=.*\d)(?=.*[a-z])(?=.*[A-Z])|(?=.*\d)(?=.*[a-zA-Z])(?=.*[!@#$%\^&\*\_\-+=\?|\/\(\)\\{}\[\]:<>,\.;])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\_\-+=\?|\/\(\)\\{}\[\]:<>,\.;]))(?=\S+$).{15,}
/
gm
Open regex in editor

Description

  • A password must consist of at least fifteen characters.
  • A password must contain a character from at least three of the following four sets:
    • A-Z
    • a-z
    • 0-9
    • !@#$%^&*_-+=?|/(){}[]:<>,.;
  • No whitespaces
Submitted by RGT, Mast