one-liner with Linq:
var lastPart = text.Split("https://stackoverflow.com/").Last();
or if you might have empty strings in there (plus null option):
var lastPart = text.Split("https://stackoverflow.com/").Where(x => !string.IsNullOrWhiteSpace(x)).LastOrDefault();