eraseBetween
Delete substring between start and end points in Requirements Table block
Since R2022b
Syntax
Description
deletes the substring in newStr
= eraseBetween(str
,startStr
,endStr
)str
between the substrings
startStr
and endStr
.
eraseBetween
does not delete startStr
and
endStr
themselves.
deletes the substring in newStr
= eraseBetween(str
,startPos
,endPos
)str
between the character positions
startPos
and endPos
, including the characters at
those positions.
includes or excludes the boundaries specified in the previous syntaxes from the substring
that the operator deletes. Specify newStr
= eraseBetween(___,Boundaries=bounds
)bounds
as
"inclusive"
or "exclusive"
.
Examples
Input Arguments
Output Arguments
Limitations
This operator does not support the use of
Simulink.Bus
object fields.
Version History
Introduced in R2022b