Project

General

Profile

$remove » History » Version 2

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

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