Regular Expressions - Restrict Possible Usernames

Tell us what’s happening:
Describe your issue in detail here.
I’m reallly what’s telling me to do cause I type userCheck with the quotes and no result
Your code so far

let username = "JackOfAllTrades";
let userCheck = /"userCheck"/; // Change this line
let result = userCheck.test(username);

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Regular Expressions - Restrict Possible Usernames

Link to the challenge:

You need to create a regular expression pattern that tests a string to verify whether it meets all of the requirements in the four bullet points in the instructions.

The instructions did not say to change the regex to “userCheck”. They said to change the regex userCheck. In other words, fix the regular expression stored by the variable userCheck.

1 Like

I got it thanks!! :+1:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.