I am trying to build simple regex with js.
the rules for the regex are:
Length: 6-32 characters.
alphanumric characters.
at least 1 letter and 1 digit.
special characters: not allowed.
whitespace: not allowed.
i came up with this: /^(?=.*\d)(?=.*[a-zA-Z])/
but is not working well.
Use negative lookaheads: