getSuffix()
Table of Contents
Overview
The getSuffix() function takes string and searchString as arguments. It returns all the characters which follow the first occurrence of searchString in the string. .
If the searchString is not found, this function returns null.
Note: This function performs a case-sensitive search.
Return Type
- Text
Syntax
<variable> = <string>.getSuffix( <searchString> );
(OR)
<variable> = getSuffix( <string>, <searchString>);
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned characters. | TEXT |
<string> | The string from which all the characters following the searchString will be returned. | TEXT |
<searchString> |
| TEXT |
Examples
text = "Create custom apps with Zoho Creator" ;
newText = text.getSuffix("with");
//returns " Zoho Creator"
newText = text.getSuffix("with");
//returns " Zoho Creator"