A
Alan T
string[] keywords;
char[] charSeparators = new char[] { ' ' };
keywords = aKeywords.Split(charSeparators,
StringSplitOptions.RemoveEmptyEntries);
foreach (string keyword in keywords)
{
MessageBox.Show(keyword);
_documentDA.DeleteDocumentKeyword(aDoc, keyword);
}
I can split the string into words if they are separated by a space.
How about if I have a string separated by space characters and return?
eg.
I entered "Hello world !" in the first line of a rich text box and press
"ENTER" key to the second line. Then enter "My name is Alan".
I just wonder the "!My" will be treated as one word.
char[] charSeparators = new char[] { ' ' };
keywords = aKeywords.Split(charSeparators,
StringSplitOptions.RemoveEmptyEntries);
foreach (string keyword in keywords)
{
MessageBox.Show(keyword);
_documentDA.DeleteDocumentKeyword(aDoc, keyword);
}
I can split the string into words if they are separated by a space.
How about if I have a string separated by space characters and return?
eg.
I entered "Hello world !" in the first line of a rich text box and press
"ENTER" key to the second line. Then enter "My name is Alan".
I just wonder the "!My" will be treated as one word.