Regex to count hyphenated and apostrophe words
<p>How can I modify this regex to count words that include hyphen or apostrophe as one word?</p>

<pre><code>@"^(\w+\b.*?){numOfWords}"
</code></pre>

<p>Thank you!</p>

<p>EDIT: I am trying to get this expression to return the first n words, while counting words with a ' or hyphen as one word</p>

<pre><code>string substringWords = Regex.Match(stringWords, @"^(\w+\b.*?){" +      numberOfWords + "}").ToString();
</code></pre>