Added in 1.9.0

$findtok(text,token,N,C)

Returns the position of the Nth matching token in text.

Parameters

text - The text to search.
token - The token to find.
N - The N'th token to find.
C - The token delimiter.

Example

; Find position where token 'c' starts.
//echo -ag $findtok(a.b.c.d,c,1,46)