var s = 'Hi, do you (know) your abcs?';const regex1 = /ab?/gi;console.log(regex1.exec(s));
1 回答

智慧大石
TA贡献1946条经验 获得超3个赞
var s = 'Hi, do you (know) your abcs?';
const regex1 = /ab??/gi;
console.log(regex1.exec(s));
添加回答
举报
0/150
提交
取消