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


8.2.57.21 string.regexprep

Method: out = regexprep (obj, pat, repstr)
Method: out = regexprep (…, varargin)

Replace based on regular expression matching.

Replaces all the substrings matching a given regexp pattern pat with the given replacement text repstr.

Returns a string array of the same size as obj.