In other words...
Are you trying to return the index of a substring in another string, parsing from right to left?
{Edit}The answer appears to be yes and the question is a description of instrrev(){/Edit}

[ 14. November 2002, 21:50: Message edited by: Waltz ]
_________________________
We all live in a Yellow Subroutine...