Project

General

Profile

Actions

$wildtok » History » Revision 3

« Previous | Revision 3/4 (diff) | Next »
Per Amundsen, 05/24/2018 10:12 AM


Added in 1.9.0

$wildtok(text,wildstring,N,C)

Returns the Nth token that matches the wildcard string.

$wildtok is case-insensitive, see $wildtokcs for case-sensitive version.

Parameters

text - The text to tokenize.
wildstring - String to search.
N - If N = 0, return number of matching tokens, otherwise the Nth token.
C - The ASCII value to tokenize by.

Example

; Prints the number of matches from the wildstring 't*'.
//echo -ag $wildtok(one two three, t*, 0, 32)

; Prints the first match from the wildstring 't*e'.
//echo -ag $wildtok(one two three, t*e, 1, 32)

Updated by Per Amundsen over 6 years ago · 3 revisions

Also available in: PDF HTML TXT