Validate password¶
A valid password must contain at least one lowercase letter, one uppercase letter, one digit and one special character, and be 7-20 characters long. Each rule is expressed as a separate lookahead:
Snippet to validate:
See the runnable version with tests.