Navigation

Operators and Keywords

Function List:

C++ API

: rindex (s, t)

Return the position of the last occurrence of the character string t in the character string s, or 0 if no occurrence is found.

s may also be a string array or cell array of strings.

For example:

rindex ("Teststring", "t")
     ⇒ 6

The rindex function is equivalent to index with direction set to "last".

See also: find, index.

Package: octave