Suppose I have a string:
\"34234234d124\"
I want to get the last four characters of this string which is \"d124\". I can use <
\"d124\"
Using Substring is actually quite short and readable:
var result = mystring.Substring(mystring.Length - Math.Min(4, mystring.Length)); // result == "d124"