erase
Remove all occurrences of a pattern from a string.
Syntax
Section titled “Syntax”s = erase(str, match)Description
Section titled “Description”Returns str with every occurrence of the substring match removed. Equivalent to strrep(str, match, '').
Example
Section titled “Example”erase('a-b-c-d', '-') % 'abcd'See also
Section titled “See also”eraseBetween— Remove the substring between two boundary patterns.strrep— Replace all occurrences of a substring.