How can I remove all words from a string beginning with minus?
<p>I tried this, but it seems to work only with alphanumeric characters?</p>

<pre><code>\ba\w*\b  &lt;- works
\b-\w*\b  &lt;- doesn't work
</code></pre>

<p>How can I remove all the words from a string that starts with a hyphen?</p>
