Project

General

Profile

Actions

$remove » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
Per Amundsen, 08/10/2015 06:33 AM


Added in 1.8.10

$remove(string,substring,...)

Removes any occurrence of substring in string.

$remove is case-insensitive, see $removecs for case-sensitive version.

Parameters

string - The string to search.
substring - The substring to remove.
... - Additional substrings to remove.

Example

; Remove all occurrences of 'cd' from the string.
//echo -ag $remove(abcdefg,cd)

; Remove all occurrences of 'a', 'c', 'e', 'g' from the string.
//echo -ag $remove(abcdefg,a,c,e,g)

Updated by Per Amundsen over 8 years ago · 2 revisions

Also available in: PDF HTML TXT