Sir/Madam,
How to split more than one word from sentence.for example if i have the sentence like "The King of India " here i need the result as "King India" , i want to remove the words "The" and "of" from the sentence.
With Regards,
Gomathi.P
How to split more than one word from sentence?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 23, 2010, 9:48 PM EDT
string str;
str.Split(" ");
Store the resultant value in a Array.
From that array you need to remove the verbs by check conditions.
if (array.contains(str[0]))
{
....
}