$intIndex = Rindex ( <Target
string>,<Search string> )
Finds a character
inside a larger string starting the search from the end.
<Target string> This main string is examined for the existence of a character.
<Search string> The character to be searched.
Returns the zero-based index of the last character in the "Target
string" that matches the requested character, -1 if the
character is not found.
function is similar to Rindex() and has the same syntax.
$Var = "abdca"
$reverseindex = Rindex($Var,"a")
- Function will return the index 4, starting the search from the end .