المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Splitting a string



C# Programming
08-10-2009, 02:45 PM
I was using the following code to split textbox text by a single space character:

string words = notesTextBox.Text;
string[] splitWords = words.Split(new Char[] { ' '});


I now need to split the textbox text by either the space character or a carriage return. How can I do this please?