Project

General

Profile

Added in 1.8.10

$removecs(string,substring,...)

Removes any occurrence of substring in string.

$removecs is case-sensitive, see $remove for case-insensitive 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 $removecs(abcdCDefg,CD)

; Remove all occurrences of 'A', 'C', 'E', 'G' from the string.
//echo -ag $removecs(aAbcCdeEfgG,a,c,e,g)

Updated by Per Amundsen over 2 years ago · 1 revisions

Also available in: PDF HTML TXT