how to check if a string fullfil with multiple regex and capture that portion that match?
问题 What I want I'm working with a django form and it takes a password input. I need to pass the input value for multiple regexes, which will test if: at least one character is a lowecase at least one character is a uppercase at least one character is a number at least one character is a especial character (symbol) 8 characters minimum And I would like to know which of these conditions were fulfilled and which were not. What I've done def clean_password(self): password = self.cleaned_data.get(