📅  最后修改于: 2022-03-11 14:59:32.535000             🧑  作者: Mango
let username = "JackOfAllTrades";
let userCheck = /^[a-z][a-z]+\d*$|^[a-z]\d\d+$/i;
let result = userCheck.test(username);
console.log(result)