title: regex word boundary excluding the hyphen
body: <p>i need a regex that matches an expression ending with a word boundary, but which does not consider the hyphen as a boundary.
  i.e. get all expressions matched by</p>
  
  <pre><code>type ([a-z])\b
  </code></pre>
  
  <p>but do not match e.g.</p>
  
  <pre><code>type a-1
  </code></pre>
  
  <p>to rephrase: i want an equivalent of the word boundary operator \b which instead of using the word character class <code>[A-Za-z0-9_]</code>, uses the extended class: <code>[A-Za-z0-9_-]</code></p>