let username = "JackOfAllTrades";
let userCheck = /^[A-Za-z]{2,}\d*$/ ; // Change this line
let result = userCheck.test(username);
console.log(result);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Using the | you can extend the regex to account for the Z97 case. It would pretty much be the same as what you have now except the {2,} would be for the digits in the second case.