Project

General

Profile

$remtokcs » History » Version 3

Per Amundsen, 07/27/2020 01:12 AM

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