Hello everybody. Can somebody help me ! How to my regex match "Z97" ? thank you very much

Tell us what’s happening:

Your code so far


let username = "JackOfAllTrades";
let userCheck = /(^\D{2,})\d*$/; // Change this line
let result = userCheck.test(username);
console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) coc_coc_browser/80.0.180 Chrome/74.0.3729.180 Safari/537.36.

Challenge: Restrict Possible Usernames

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames

Hello, JJVinh.

Do you understand what this part of your regex is doing: (^\D{2,})

If you can explain it, then I am sure you can figure out the correct answer.