var s = 'Hi, do you (know) your abcs?';const regex1 = /ab?/gi;console.log(regex1.exec(s));
正則表達式:為什么匹配的是ab而不是a啊
至尊寶的傳說
2018-12-20 18:15:04