removeLastOccurence
This topic describes the syntax and usage of the removeLastOccurence function in Zoho Creator .
Description
The removeLastOccurence function removes the last occurence of the second argument string from the first argument string. Returns the remaining string.
Syntax
removeLastOccurence(str1 , str2)
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).
Example
Name= "This is a test string";
removeLastOccurence(Name,"s") //returns "This is a test tring".