RFIND() searches for a search string within another string, starting from the right side. It returns the character index of the specified occurrence of the search string. If no occurrence number is specified, it returns the first occurrence from the right. If the search string is not found or the specified occurrence exceeds the available matches, it returns zero.
RFIND(string, search string [, occurrence])
RFIND() returns an integer
// Finding first occurrence from right
RFIND("Green apples taste better than red apples and all other types of apples.", "apples") = 66
// No match found
RFIND("Green apples taste better than red apples and all other types of apples.", "oranges") = 0
// Finding specific occurrences from right
RFIND("Green apples taste better than red apples and all other types of apples.", "apples", 1) = 66
RFIND("Green apples taste better than red apples and all other types of apples.", "apples", 2) = 36
RFIND("Green apples taste better than red apples and all other types of apples.", "apples", 3) = 7
RFIND("Green apples taste better than red apples and all other types of apples.", "apples", 4) = 0