$$indexof
Finds the index of the first occurrence of the specified substring with optional from index (returns -1 if not found)
Usage​
{
"$$indexof": /* The string to search in */,
"substring": /* string */,
"from": /* integer */
}
"$$indexof(<substring>,[from]):{input}"
Returns​
number
Arguments​
| Argument | Type | Values | Required / Default Value | Description |
|---|---|---|---|---|
| Input | string | Yes | The string to search in | |
substring | string | Yes | The substring to look for | |
from | integer | null | From which index to look for |