how do i remove the last word from a string in c#
suppose
string is "hi how are you"
i wanna remove you
suppose
string is "hi how are you"
i wanna remove you
s = "hi how are you"; s.Substring(0, s.LastIndexOf(" ")<0?0:s.LastIndexOf(" "));
Comment