Project

General

Profile

Actions

$findtok » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
Per Amundsen, 08/10/2015 05:14 AM


Added in 1.9.0

$findtok(text,token,N,C)

Returns the position of the Nth matching token in text.

$findtok is case-insensitive, see $findtokcs for case-sensitive version.

Parameters

text - The text to tokenize.
token - The token to find.
N - The Nth token to find.
C - The ASCII value to tokenize by.

Example

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

Updated by Per Amundsen over 9 years ago · 2 revisions

Also available in: PDF HTML TXT