Next: , Previous: , Up: string   [Contents]


8.2.57.19 string.strrep

Method: out = strrep (obj, match, replacement)
Method: out = strrep (…, varargin)

Replace occurrences of pattern with other string.

Replaces matching substrings in obj with a given replacement string.

varargin is passed along to the core Octave strrep function. This supports whatever options it does. TODO: Maybe document what those options are.

Returns a string array of the same size as obj.