replaceBetween
Replace substrings between start and end points in Requirements Table block
Since R2022b
Syntax
Description
replaces the substring in newStr = replaceBetween(str,startStr,endStr,new)str between the substrings
startStr and endStr with the string
new. replaceBetween does not replace
startStr and endStr themselves.
new can have a different number of characters than the substring it
replaces. Use this operator in the Requirements
Table block.
replaces the substring in newStr = replaceBetween(str,startPos,endPos,new)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 replaces. Specify newStr = replaceBetween(___,Boundaries=bounds)bounds as
"inclusive" or "exclusive".
Examples
Input Arguments
Output Arguments
Limitations
This operator does not support the use of
Simulink.Busobject fields.
Version History
Introduced in R2022b



