Insert strings after specified substrings
inserts newStr
= insertAfter(str
,startStr
,newText
)newText
into str
after
the substring specified by startStr
and returns
the result as newStr
. If startStr
occurs
multiple times in str
, then insertAfter
inserts
text after every occurrence of startStr
.
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
.
erase
| eraseBetween
| extractAfter
| extractBefore
| insertBefore
| join
| plus
| replace
| split