Suppose I have this string:
string str = "The quick brown fox jumps over the lazy dog";
How can I replace or ignore the spaces in the string and enter each word in the multiline textBox?
Expected output:
The
quick
brown
fox
jumps
over
the
lazy
dog
My .NET framework version is 2.0
UPDATE: Of course, StringSplitOptions.RemoveEmptyEntries should be used.
UPDATE2: alternative version via regular expression