title: Regex to match words with hyphens and/or apostrophes
body: <p>I was looking for a regex to match words with hyphens and/or apostrophes. So far, I have:</p>
  
  <pre><code>(\w+([-'])(\w+)?[']?(\w+))
  </code></pre>
  
  <p>and that works most of the time, though if there's a apostrophe and then a hyphen, like "qu'est-ce", it doesn't match. I could append more optionals, though perhaps there's another more efficient way?</p>
  
  <p>Some examples of what I'm trying to match: Mary's, High-school, 'tis, Chambers', Qu'est-ce.</p>