Project

General

Profile

$gettok » History » Version 3

Mr. BS, 01/29/2016 01:11 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$gettok(text,N,C)*
4
5
Returns the Nth token in text.
6
7 2 Per Amundsen
_Same as [[$token]]._
8
9 1 Per Amundsen
*Parameters*
10
11
text - The text to tokenize.
12
N - The Nth token to get.
13
C - The "ASCII":http://www.asciitable.com/ value to tokenize by.
14
15
*Example*
16
17
<pre>
18
; Print the 3rd token in 'a.b.c.d.e'
19
//echo -ag $gettok(a.b.c.d.e,3,46)
20
</pre>
21 3 Mr. BS
22
_See also [[$addtok]], [[$deltok]], [[$findtok]], [[$instok]], [[$istok]], [[$matchtok]], [[$numtok]], [[$puttok]], [[$remtok]], [[$reptok]], [[$sorttok]], [[$wildtok]]._