title: exclude full word with javascript regex word boundary
body: <p>I'am looking to exclude matches that contain a specific word or phrase. For example, how could I match only lines 1 and 3? the <code>\b</code> word boundary does not work intuitively like I expected.</p>
  <pre><code>foo.js            # match
  foo_test.js       # do not match
  foo.ts            # match
  fun_tset.js       # match
  fun_tset_test.ts  # do not match
  </code></pre>
  <p><strong>UPDATE</strong></p>
  <p>What I want to exclude is strings ending explicitly with <code>_test</code> before the extension. At first I had something like <code>[^_test]</code>, but that also excludes any combination of those characters (like line 3).</p>