$wildtokcs » History » Version 1
Per Amundsen, 08/10/2015 06:24 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$wildtokcs(text,wildstring,N,C)* |
||
4 | |||
5 | Returns the Nth token that matches the wildcard string. |
||
6 | |||
7 | _[[$wildtocsk]] is case-sensitive, see [[$wildtok]] for case-insensitive version._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | text - The text to tokenize. |
||
12 | wildstring - String to search. |
||
13 | N - If N = 0, return number of matching tokens, otherwise the Nth token. |
||
14 | C - The "ASCII":http://www.asciitable.com/ value to tokenize by. |
||
15 | |||
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | ; Prints the number of matches from the wildstring 'T*'. |
||
20 | //echo -ag $wildtokcs(one two Three, T*, 0, 32) |
||
21 | |||
22 | ; Prints the first match from the wildstring 'T*e'. |
||
23 | //echo -ag $wildtokcs(one two Three, T*e, 1, 32) |
||
24 | </pre> |