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