Project

General

Profile

$wildtokcs » History » Revision 3

Revision 2 (Per Amundsen, 08/10/2015 06:24 AM) → Revision 3/4 (Per Amundsen, 05/24/2018 10:12 AM)

_Added in 1.9.0_ 

 *$wildtokcs(text,wildstring,N,C)* 

 Returns the Nth token that matches the [[Scripting_Wildcards|wildcard]] wildcard string. 

 _[[$wildtokcs]] 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":http://www.asciitable.com/ value to tokenize by. 

 *Example* 

 <pre> 
 ; 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) 
 </pre>