Project

General

Profile

Actions

$matchtokcs » History » Revision 2

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


Added in 1.9.0

$matchtokcs(text,string,N,C)

Returns tokens that contain the specified string.

$matchtokcs is case-sensitive, see $matchtok for case-insensitive 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 $matchtokcs(onE two thrEe, E, 0, 32)

; Returns the second match
//echo -ag $matchtokcs(onE two thrEe, E, 2, 32)

Updated by Per Amundsen over 8 years ago · 2 revisions

Also available in: PDF HTML TXT