I am 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 tried several options to match negative numbers, but they just terminate something from the match:
^(\w+) (([\S-]+)( [\S-]+)*) *$ ^(\w+) (((\S|-)+)( (\S|-)+)*) *$
What am I supposed to do here? - not a special character in regular expression, is it?
source share