find_nth_substring
Locate the starting position of the nth occurrence of a substring within text. Returns -1 if the substring does not appear the specified number of times.
Instructions
Find starting index of nth occurrence of a substring. Returns -1 if not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| substring | Yes | ||
| n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |