Project

General

Profile

$remove » History » Revision 2

Revision 1 (Per Amundsen, 08/10/2015 06:33 AM) → Revision 2/3 (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* 

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

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