How to trim that last occurrence of a character in C#
The below example will show you how to do that:)
string str = "www.SibeeshPassion.com|";
string afterTrim = str.TrimEnd('|');Here we are trimming the char '|'.
How to trim that last occurrence of a character in C#.
string str = "www.SibeeshPassion.com|";
string afterTrim = str.TrimEnd('|');