Suppose I have a string:
\"34234234d124\"
I want to get the last four characters of this string which is \"d124\". I can use <
\"d124\"
You can simply use Substring method of C#. For ex.
Substring
string str = "1110000"; string lastFourDigits = str.Substring((str.Length - 4), 4);
It will return result 0000.