文字列をトリミングして、特定の単語の後に出現するすべての単語を削除したいと考えています。
例- 文字列に「very」テキストが含まれている場合
string mySentence=" Today is very nice day! ";
if (mysentence.Contains(very))
{
//remove everything that starts with 'very' until rest of the line..
}
結果は次のようになります。
今日は