Tell us what’s happening:
The regex works as it should, but when I run the tests it says that it doesn’t match “RegexGuru” username
Your code so far
let username = "RegexGuru";
let userCheck = /[a-zA-Z][a-zA-Z]\w+/gi; // Change this line
let result = userCheck.test(username);
console.log(username.match(userCheck));
console.log(result);
Output
RegexGuru
true
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36.