I try to write a simple Regular Expression that checks for the following conditions:
- At least six characters long
- contains a lowercase letter
- contains an uppercase letter
- contains a number
I tried to work like this:
regex = re.compile(r'''([0-9])+([A-Z])+([a-z])+.{6,}''')
I found a lot of similar threads, but I would like to know why exactly mine is not working as I intend it too. As I am still new to programming and regex in general I apologize if I missed some trivial stuff right here.
Thanks for the help!