$intIndex = ReverseFind ( <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 ReverseFind() and has the same syntax.
$Var = "abdcf"
$index = ReverseFind($Var,"f")
- will return the index 4, starting the search from the end.