Help with Expressions

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:

this you may want to correct

also do not use g flag with test method

thank you I was reviewing the expression and need to focus on the 007 to pass and I think this has your correction plus an addition change . It works

let username = “JacodeckOfllTrades”;
let userCheck = /^[a-zA-Z]{2,}\d*|^[a-zA-Z][0-9]\d/i; // Change this line
let result = userCheck.test(username);
//

thanks for quick response