$token » History » Version 1
Per Amundsen, 08/10/2015 06:19 AM
1 | 1 | Per Amundsen | _Added in 1.9.1_ |
---|---|---|---|
2 | |||
3 | *$token(text,N,C)* |
||
4 | |||
5 | Returns the Nth token in text. |
||
6 | |||
7 | _Same as [[$gettok]]._ |
||
8 | |||
9 | *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 $token(a.b.c.d.e,3,46) |
||
20 | </pre> |