Project

General

Profile

$wildtokcs » History » Version 4

Per Amundsen, 02/23/2023 07:57 PM

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