var s = 'Hi, do you (know) your abcs?';
const regex1 = /ab?/gi;
console.log(regex1.exec(s));
智慧大石
相关分类