$ ./guess_the_languageRegex
Regex · hard · #32

Which password does this pattern accept?

/^(?=.*\d)(?=.*[A-Z]).{8,}$/
  1. "Passw0rd"
  2. "password1"
  3. "Password"
  4. "PASS1"
Each lookahead checks one rule (a digit, an uppercase letter) and .{8,} enforces the length.
Play Regex ▸