📜  限制可能的用户名 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:32.535000             🧑  作者: Mango

代码示例1
let username = "JackOfAllTrades";
let userCheck = /^[a-z][a-z]+\d*$|^[a-z]\d\d+$/i;
let result = userCheck.test(username);
console.log(result)