home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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.