Tell us what’s happening:
So it looks like I got the majority of the test but I m missing the how to address one how to add muliple expressions together do I use the |? And if add the alpha numberic expression it changes the results to exclude the different validations.
Passed Your regex should match JACK
Passed Your regex should not match J
Your regex should match Jo
Passed Your regex should match Oceans11
Passed Your regex should match RegexGuru
Passed Your regex should not match 007
Passed Your regex should not match 9
Passed Your regex should not match A1
Your regex should not match `BadUs3rnam3`
Your regex should match `Z97`
Your regex should not match `c57bT3`
Your code so far
let username = "JackOfllTrades";
let userCheck = /[a-zA-Z][a-zA=-z]|[0-9]\d$/gi; // Change this line
let result = userCheck.test(username);
//
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
.
Challenge: Restrict Possible Usernames
Link to the challenge: