Tell us what’s happening:
Describe your issue in detail here.
Your code so far
let username = "JackOfAllTrades";
let userCheck = /^[a-zA-Z]{2,}\d*$/i; // 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/93.0.4577.63 Safari/537.36
Challenge: Restrict Possible Usernames
Link to the challenge:
I have been doing the regex part of the javascript curriculum and in this lesson, if I test the regex outside of the lesson anywhere the string Z97 does not match and for some reason the string inside the lesson does and it gives the error that the string z97 should not match.