Test, validate and match regular expressions
This regex validates passwords by requiring at least one digit, one lowercase letter, and one uppercase letter, with a minimum length of 8 characters. It uses lookaheads to enforce character class presence without consuming characters, making it ideal for form validation or account creation security checks. The multiline flag allows checking each line separately, but for typical single-password validation it works on the whole input.