This topic describes the syntax and usage of the removeLastOccurence function in Zoho Creator .
The removeLastOccurence function removes the last occurence of the second argument string from the first argument string. Returns the remaining string.
The removeLastOccurence function syntax has the following arguments.
str1 - Required. The main string from which you what to find the last occurence of the second argument string (str2).
str2 - Required. The string to be searched for within the main string (str1).
Name= "This is a test string";
removeLastOccurence(Name,"s") //returns "This is a test tring".