script (MEL) |
Only available in
MEL |
endString
|
In categories: Language, Strings |
Go to: Synopsis. Return value. Related.
MEL examples.
string endString(string $s, int
$count)
This procedure returns the last $count characters of the string $s.
If $count is zero or negative, then an empty string is returned. If
$count is greater than or equal to the number of characters in $s,
then the entire string is returned.
None
endsWith, startString, startsWith
endString("abc", 1);
// Result: c //
endString("abc", 8);
// Result: abc //
endString("abc", 0);
endString("", 3);