Home > freetb4matlab > strings > strrep.m

strrep

PURPOSE ^

% Replace all occurrences of the substring @var{x} of the string @var{s}

SYNOPSIS ^

function t = strrep (s, x, y)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} strrep (@var{s}, @var{x}, @var{y})
% Replace all occurrences of the substring @var{x} of the string @var{s}
% with the string @var{y} and return the result.  For example,
%
% @example
% @group
% strrep ('This is a test string', 'is', '&%$')
%      @result{} 'Th&%$ &%$ a test string'
% @end group
% @end example
% @seealso{regexprep, strfind, findstr}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003