Tell us what’s happening:
I think I’m getting better and better with regular expressions every day. But I’m stil missing something in this exercice: this condition -> Usernames have to be at least two characters long. A two-letter username can only use alphabet letter characters.
There is no reglar expression syntax that allows to specific nth time a character has to repeat if I recall…Or am I wrong?
Your code so far
let username = "JackOfAllTrades"; let userCheck = /[a-zA-Z]\d*$/; // Change this line let result = userCheck.test(username);
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0.