insertAfter
Insert strings after specified substrings
Description
inserts newStr
= insertAfter(str
,pat
,newText
)newText
into str
after the substring
specified by pat
and returns the result as
newStr
. If pat
occurs multiple times in
str
, then insertAfter
inserts text after
every occurrence of pat
.
If str
is a string array or a cell array of character vectors,
then insertAfter
inserts newText
into each
element of str
. The output argument newStr
has
the same data type as str
.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016b