Project

General

Profile

Actions

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

Parameter Description
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 1 year ago · 2 revisions

Also available in: PDF HTML TXT