I need to split a string at all whitespace, it should ONLY contain the words themselves.
How can I do this in vb.net?
Tabs, Newlines, etc. must all be split!
This has been bugging me for quite a while now, as my syntax highlighter I made completely ignores the first word in each line except for the very first line.
String.Split() (no parameters) does split on all whitespace (including LF/CR)
Try this:
Regex.Split("your string here", "\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