StringUtils.GetLastCharacters
Retrieves the last n characters from the end of a string up to the number of characters specified. If there are fewer characters the original string is returned otherwise the last n characters are returned.
public static string GetLastCharacters(string s, int characterCount)
Parameters
s
input string
characterCount
number of characters to retrieve from end of string
