xxxxxxxxxx
string last = input.Split(' ').LastOrDefault();
xxxxxxxxxx
Uri uri = new Uri(" https://www.codeproject.com/Questions/5225378");
string lastSegment = uri.Segments.Last();
xxxxxxxxxx
Uri uri = new Uri(" https://www.codeproject.com/Questions/5225378");
string lastSegment = uri.Segments.Last();