Added in 1.9.0

$wildtokcs(text,wildstring,N,C)

Returns the Nth token that matches the wildcard string.

$wildtocsk is case-sensitive, see $wildtok for case-insensitive 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 $wildtokcs(one two Three, T*, 0, 32)

; Prints the first match from the wildstring 'T*e'.
//echo -ag $wildtokcs(one two Three, T*e, 1, 32)