FUNCTION REFERENCE

strfind

Find text inside text.

Find text inside text.

Syntax

k = strfind(s, pattern)

Syntax

c = strfind(c, pattern)

Returns the start positions of pattern in s as a row, or [] if there is none. Matches may overlap. A cell array input gives a cell array of positions.

Example

strfind('abcabc', 'bc')   % [2 5]

Differences from MATLAB: The ForceCellOutput option is not supported yet.

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