📅  最后修改于: 2022-03-11 15:02:58.727000             🧑  作者: Mango
var str = 'the first 3 letters of the alphabet are abc. not abc123';
var pat = /\b(abc)\b/g;
console.log(str.match(pat)); // ["abc"]