So, I need you match all the characters from A-z in my code and then get the length of it. Basically I need to use a match in the string value, and then get the length of that match. Right now it doesn't work at all. If I remove the length, I get a null value.
Here is the code of it so far:
var username = "A1KJ!PNSG2Q0";
if(username.match(/^[A-z]+$/g).length < 5) {
alert("Yay!")
}
Thank you in advanced to anyone helps!