Project

General

Profile

Actions

$matchtok » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 08/10/2015 05:26 AM


Added in 1.9.0

$matchtok(text,string,N,C)

Returns tokens that contain the specified string.

$matchtok is case-insensitive, see $matchtokcs for case-sensitive version.

Parameters

text - The text to tokenize.
string - Search string.
N - If N is 0, returns number of matches, otherwise returns the Nth match.
C - The ASCII value to tokenize by.

Example

; Returns number of matches
//echo -ag $matchtok(one two three, e, 0, 32)

; Returns the second match
//echo -ag $matchtok(one two three, e, 2, 32)

Updated by Per Amundsen over 9 years ago · 1 revisions

Also available in: PDF HTML TXT