Project

General

Profile

$remtok » History » Version 1

Per Amundsen, 08/10/2015 06:02 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
$remtok(text,token,N,C)
4
5
Removes the Nth matching token from text.
6
7
_[[$remtok]] is case-insensitive, see [[$remtokcs]] for case-sensitive version._
8
9
*Parameters*
10
11
text - The text to tokenize.
12
token - Token to add.
13
N - If N = 0, all 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
; Remove the first 'b' token.
20
//echo -ag $remtok(a.b.c.d,b,1,46)
21
22
; Remove all 'b' tokens.
23
//echo -ag $remtok(a.b.b.b,b,0,46)
24
</pre>