Regex doit correspondre exactement

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"]
Indonesia People