こんな間違いをしたことがある(js)。

alert([
 '---',
 'jpan jp en'.match(/jp\b/),
 '日本 日 英'.match(/日\b/),
 '---'
]);