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)
Return Value
Up to the last n characters of the string. Empty string on empty or null
Parameters
s
input string
characterCount
number of characters to retrieve from end of string
See also:
Class StringUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic