InStrRev

The InStrRev instruction is used to find the location of a string within a string. It differs from InStr in that it will search from the end of the string rather than from the start of the string.

Syntax

Variable = InStrRev ( start, source, pattern )

Remarks

This function returns the integer position of the pattern parameter. If the pattern is not found, the function returns 0.

The source is the string in which to look for the pattern. Note that in most cases the pattern will be a literal string and, therefore, must be enclosed in quotes and preceded by a $. The start parameter is the integer position of where to start in the source (1 = first character). With a start parameter less than or equal to zero, the search will begin at the last character of the string.  All character comparisons will not be case-sensitive.