Project

General

Profile

$removecs » History » Version 2

Per Amundsen, 02/23/2023 07:26 PM

1 1 Per Amundsen
_Added in 1.8.10_
2
3
*$removecs(string,substring,...)*
4
5
Removes any occurrence of substring in string.
6
7
_[[$removecs]] is case-sensitive, see [[$remove]] for case-insensitive version._
8
9
*Parameters*
10
11 2 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| string | The string to search. |
14
| substring | The substring to remove. |
15
| ... | Additional substrings to remove. |
16 1 Per Amundsen
17
*Example*
18
19
<pre>
20
; Remove all occurrences of 'CD' from the string.
21
//echo -ag $removecs(abcdCDefg,CD)
22
23
; Remove all occurrences of 'A', 'C', 'E', 'G' from the string.
24
//echo -ag $removecs(aAbcCdeEfgG,a,c,e,g)
25
</pre>