getOccurenceCount()
Table of Contents
Overview
The getOccurenceCount() function takes string and searchString as arguments. It returns the count of occurrences of searchString in the string.
Return Type
- NUMBER
Syntax
(OR)
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned count. | NUMBER |
<string> | The string in which the count of searchString will be calculated. | TEXT |
<searchString> |
| TEXT |
Examples
count = text.getOccurenceCount("database"); //returns 2