Minimum 2 alphabetical data required

Tell us what’s happening:
Describe your issue in detail here.
I can’t figure out how to specify a minimum of 2 alphabetical characters

Your code so far

let username = "JackOfAllTrades";
let userCheck = /^[a-z{2,}]+[0-9]*$/ig; // 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/101.0.4951.64 Safari/537.36 Edg/101.0.1210.53

Challenge: Restrict Possible Usernames

Link to the challenge:

{2,} should be outside of square brackets, ^[a-z]{2,} you can start from that, you should use an live regex tester like

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