Regular Expressions - Restrict Possible Usernames

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 YaBrowser/23.11.0.0 Safari/537.36

Challenge Information:

let username = "JackOfAllTrades";
let userCheck = /^[a-z]([0-9]{2,}|[a-z]+\d*)$/i; // Change this line
let result = userCheck.test(username);

Regular Expressions - Restrict Possible Usernames

Hmm, where are examples of similar tasks on this forum? How can you complete tasks without any practice? How can you think about putting parentheses or writing with or? Well, of course, no one can explain this, why not perfect the basic things?

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

you are doing the legacy version of the curriculum, if you don’t like it, try the new beta version

Where is the new version? Because it’s difficult to understand where everything is on this resource))

look at the list of certifications, it’s in the place the previous one occupied

I don’t quite understand you, are you suggesting returning to the previous task?

no, I’m saying that if you look at the list of certifications now there is a " JavaScript Algorithms and Data Structures (Beta)" where before there was a " JavaScript Algorithms and Data Structures"

The forum is for asking for help with your coding.

You can try the new style of JavaScript curriculum here:

Regex is also just especially hard to learn and wrap your head around.

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