extractAfter
Extract substring after specified position
Syntax
newStr = extractAfter (str, startStr)
newStr = extractAfter (str, startPos)
Description
extracts the substring that begins afternewStr
= extractAfter(str
,startStr
)startStr
and ends with the last character ofstr
. IfstartStr
occurs multiple times instr
, thennewStr
isstr
from the first occurrence ofstartStr
to the end.
Ifstr
is a string array or a cell array of character vectors, thenextractAfter
extracts substrings from each element ofstr
. The output argumentnewStr
has the same data type asstr
.
Examples
Input Arguments
Output Arguments
Extended Capabilities
See Also
count
|擦除
|擦除Between
|extractBefore
|extractBetween
|insertAfter
|insertBefore
|join
|replace
|replaceBetween
|size
|split
|strlength
Introduced in R2016b
Was this topic helpful?