I have the following line:
hshd household 8/29/2007 LB
I want to match anything that comes before the first space (whitespace). So, in this case, I want to get back
hshd
([^s]+)
works
2.1m questions
2.1m answers
60 comments
57.0k users