Test, validate and match regular expressions
Validates that a string is at least 8 characters long and contains at least one digit and one uppercase letter, typically used for password strength validation. The positive lookaheads each verify a requirement independently while the surrounding .* consumes the entire string. Commonly used in JavaScript form validation to enforce password rules.