📜  从正则表达式 javascript 代码示例生成字符串

📅  最后修改于: 2022-03-11 15:03:57.704000             🧑  作者: Mango

代码示例1
console.log(new RandExp(/^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}$/).gen());
console.log(new RandExp(/^[0-9]{4}$/).gen());
console.log(new RandExp(/^[0-9,A-Z]{4}$/).gen());
console.log(new RandExp(/^([A-Z]){5}([0-9]){4}([A-Z]){1}$/).gen());