The result that I'm seeking at the moment is to split textBox1.Text into as many textboxes as possible , as long as the splitting sign exist ('+' or '#' for example)
So each new textbox should only have the word between the two signs example :
textBox1.text = "one+two+three"; then textBox2.text = "one"; textBox3.text = "two"; textBox3.text = "three";
The following two examples achieve 90% of what I need , but I still can't figure out how to put the values each in a separate textBox.text :
string str = "one\n \ntwo\n \nthree\n \n \nfour";
string[] result = Regex.Split(str, "\n\\s*");
for (int i = 0; i < result.Length; i++)
MessageBox.Show(result[i]);
and
string input = "one)(two)(three)(four)(five";
string[] result = input.Split(new string[] { ")(" }, StringSplitOptions.None);
foreach (string s in result)
MessageBox.Show(s);