title: How to add hyphen to regex
body: <p>I have encountered this pattern</p>
  
  <pre><code>(\w+)
  </code></pre>
  
  <p>and from <a href="http://gskinner.com/RegExr/" rel="nofollow">http://gskinner.com/RegExr/</a> site I understand that <code>\w</code> = match alpha-numeric characters and underscores, and <code>+</code> = match previous token 1 or more times (not exactly sure what that means).</p>
  
  <p>How can I add the hyphen character to the list? </p>
  
  <p>I tried <code>(\w\-+)</code> but it doesn't work, I don't get any match ...</p>