Tell us what’s happening:
I have been trying to solve the Regular Expression for checking possible usernames, but it seem like i have not gotten it.
Your code so far
let username = "JackOfAllTrades"; let userCheck = /[a-zA-Z]/gi ; // Change this line let result = userCheck.test(username);
The above takes care of about 80% of the required format leaving only the ones that ends with numbers.
But cracking that has been hectic.
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0.
Challenge: Restrict Possible Usernames
Link to the challenge: