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
This should do it:
^\S*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With