Trimming and Removing text from string?
I want to trim a string and remove all the words that occur after a
certain word.
For example - If the string contains 'very' text
string mySentence=" Today is very nice day! ";
if (mysentence.Contains(very))
{
//remove everything that starts with 'very' until rest of the line..
}
result should be:
Today is
No comments:
Post a Comment