Skip to content

__rindex__

strings · scripts/strings/__rindex__.m

: idx = rindex (s, t)

Return the 1-based position where the last occurrence of t starts in s, or 0 when there is none.

s may be a char row, a char matrix (one result per row, as a column) or a cell array of strings (same-shaped result). Matching is case sensitive and occurrences may overlap.