title: How can I include a minus sign in this regex?
body: <p>I'm trying to match the following three lines:</p>
  <pre><code>usemtl ftw
  kd 1.2 3.2 3.1
  v  -12.1892 -53.4267 -276.4055
  </code></pre>
  <p>My regex matches the first two:</p>
  <pre><code>^(\w+) ((\S+)( \S+)*) *$
  </code></pre>
  <p>I've tried a few variants to match the negative numbers, but they just stop anything from being matched:</p>
  <pre><code>^(\w+) (([\S-]+)( [\S-]+)*) *$
  ^(\w+) (((\S|-)+)( (\S|-)+)*) *$
  </code></pre>
  <p>What am I supposed to do here? <code>-</code> isn't a special character in regex, is it?</p>