I am using regex101 as a baseline for correct javascript regex. Here is my pattern:
/^(?=.*[0-9])(?=.*[a-zA-Z]).{8,40}/g
I am trying to create a password regex that is between 8-40 characters, with any characters but at least one number and at least one alphabet character.
On regex101, this pattern works as expected. asdf1234 correctly is matched.
However, trying to use this pattern in html5 form input pattern does not match the same results.
What am I doing wrong?