Tell us what’s happening:
is this code enough for the given problem or are there any bugs?
Your code so far
let username = "JackOfAllTrades";
let userCheck = /^\D{2,}/i; // Change this line
let result = userCheck.test(username);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.
Link to the challenge:
What are you asking?
Your regex says the first 2 letters of the string are not Digits followed by infinite characters and is case sensitive. This meets the challenge requirements.
ILM
August 26, 2019, 6:38pm
3
the tests are not really that well done
your regex will allow an username like them8hero, but numbers should be allowed only at the end
ILM
August 28, 2019, 3:19pm
5
maybe… try it! you can test it with a tool like this: https://regex101.com/