Back to Core Functions
strfind
Find pattern in string
Syntax
k = strfind(str, pattern)
Description
Returns the starting index of each occurrence of pattern in str. Returns empty array if not found.
Parameters
| Name | Description |
|---|---|
| str | String to search in |
| pattern | Pattern to find |
Returns
Array of starting indices