FUNCTION REFERENCE

extractBetween

Extract text between boundaries.

Extract text between boundaries.

Syntax

s = extractBetween(s,start,stop)

Text boundaries are excluded and every nonoverlapping pair is returned (a column for scalar input). Array elements must have equal match counts; results requiring N-D strings are unsupported. Numeric endpoints in UTF-16 code units are included. A position splitting a surrogate pair is unsupported.

Example

extractBetween("<abc>","<",">")

Differences from MATLAB: bounded 2-D string storage (65536 elements, 2 MiB text); MAT persistence and N-D strings are not implemented.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.