Tell us what’s happening:
Hi, I need help as I have no idea why my 2 of the tests are failing.
Can someone plese help me find out why my egex is not filtering numbers in small usernames?
Your code so far
let username = "JackOfAllTrades";
let userCheck = /^[\D][a-z]|^[\D][a-z][\d]$/gi; // Change this line
let result = userCheck.test(username);
Your browser information:
Gecko/20100101 Firefox/107.0
Challenge: Regular Expressions - Restrict Possible Usernames
Link to the challenge: