Main Content
erase
Delete substrings within strings
Description
Examples
Input Arguments
Tips
To delete multiple occurrences of a match when the occurrences overlap, use the
strrep
function.erase
only deletes the first occurrence when occurrences overlap.
Extended Capabilities
Version History
Introduced in R2016b