rindex
rindex(t_string1S_string2) =>t_result/nil
Description
Returns a string consisting of the remainder of string1 beginning with the last occurrence of string2.
Compares two strings. Similar to index except that it looks for the last (that is, rightmost) occurrence of the symbol or string S_string2 in string t_string instead of the first occurrence.
Arguments
Value Returned
|
Remainder of t_string1 starting with last match of S_string2. |
|
Examples
rindex( "dandelion" "d")
=> "delion"
Related Topics
Return to top