Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[^\s])[A-Za-z\d^\s]{8,}$
"
g

Description

Requirements:

  1. At least one lower and one upper case letter
  2. At least one digit or special character
Submitted by anonymous - 3 years ago