With custom patterns: \d,[A-Z]
\d,[A-Z]
With default patterns: /\d/, /[A-Z]/, /[\W_,!?@*\(\)]/, /^.{8}/
/\d/, /[A-Z]/, /[\W_,!?@*\(\)]/, /^.{8}/