Added in 1.8.10
Removes any occurrence of substring in string.
string - The string to search.
substring - The substring to remove.
... - Additional substrings to remove.
; 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 about 3 years ago · 2 revisions