I have a
string word = "degree/NN";
What I want is to remove the "/NN"
part of the word and take only the word "degree"
.
I have following conditions:
- The length of the word can be different in different occasions. (can be any word therefore the length is not fixed)
- But the word will contain the
"/NN"
part at the end always.
How can I do this in C# .NET?