regular expression: match any word until first space
Solution 1:
([^\s]+)
works
Solution 2:
This should do it:
^\S*
Solution 3:
Perhaps you could try ([^ ]+) .*
, which should give you everything to the first blank in your first group.
Solution 4:
Derived from the answer of @SilentGhost I would use:
^([\S]+)
Check out this interactive regexr.com page to see the result and explanation for the suggested solution.
Solution 5:
for the entire line
^(\w+)\s+(\w+)\s+(\d+(?:\/\d+){2})\s+(\w+)$