Regular Expressions - Restrict Possible Usernames

My code didn’t work and I cant find out why:
let userCheck = /[a-z][a-z]+|[a-z][a-z]*\d\d+/i;

The console displayed this:
// running tests
Your regex should not match the string BadUs3rnam3
Your regex should not match the string c57bT3
// tests completed

I dont think “BadUs3rnam3” and “c57bT3” are included in my code. Please help!

Challenge: Regular Expressions - Restrict Possible Usernames

Link to the challenge:

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