rindex
expression function
Finds the last occurrence of a pattern in a string.
See also: index
Usage
rindex(source, pattern)
Returns the number of characters before pattern occurs in source. Returns -1 if the pattern is not found.
Examples
echo `rindex("Testing rindex", "sting")`
Returns 2.
echo `rindex("Testing rindex", "i")`
Returns 8.