strrep
Find and replace substrings
Description
Examples
Input Arguments
Algorithms
The
strrepfunction does not find empty character vectors or empty strings for replacement. That is, whenstrandoldboth contain the empty character vector ('') or the empty string (""),strrepdoes not replace empty character vectors or strings with the contents ofnew.Before replacing text,
strrepfinds all instances ofoldinstr, like thestrfindfunction. For overlapping patterns,strrepperforms multiple replacements.
Extended Capabilities
Version History
Introduced before R2006a