Project

General

Profile

$instok » History » Version 4

Per Amundsen, 02/23/2023 01:45 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$instok(text,token,N,C)*
4
5
Inserts token into the Nth position in text, even if it already exists in text.
6
7 2 Per Amundsen
_N can be a negative value._
8
9 1 Per Amundsen
*Parameters*
10
11 4 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| text | Text to add the token to. |
14
| token | Token to insert. |
15
| N | The Nth position to insert at. |
16
| C | The "ASCII":http://www.asciitable.com/ value to tokenize by. |
17 1 Per Amundsen
18
*Example*
19
20
<pre>
21 3 Per Amundsen
; Insert token 'c' at token position '3'.
22 1 Per Amundsen
//echo -ag $instok(a.b.d,c,3,46)
23
</pre>