Reference: rindex
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:37:23Z

#

| Chapter 5 Function Reference |

## rindex

    rindex str, substr, [position]

Works just like `index` except that it returns the position of the last occurrence of substr in str (a reverse `index`). The function returns `-1` if not found. position, if specified, is the rightmost position that may be returned - how far in the string the function can search.

Reference: rewinddir |  | Reference: rmdir