Test, validate and match regular expressions
This regex validates strings that contain at least one uppercase letter, one lowercase letter, and one digit, using lookaheads for each requirement. It also allows hyphens, underscores, and alphanumeric characters, requiring a minimum length of 6. Commonly used for enforcing strong password policies or username constraints where mixed-case letters and numbers are mandatory.