find_nth_char
Locate the position of the nth occurrence of a specific character within text. Returns the index or -1 if not found.
Instructions
Find index of nth occurrence of a character. Returns -1 if not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| char | Yes | ||
| n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |