INSTRREV

Action

Searches a string for the presence of a second string. The search is started from the end of the source string. Note that the offset returned is counted from the beginning of the source string.

 

Syntax

INSTRREV ("string1", "string2")

 

Parameters

String1

The string to search in.

String2

The string to search for.

Returns

 

?

Offset of the first character of string2 found in string1, counted from the beginning of string1

0

String2 not present in string1

 

Example

$x = INSTRREV(@CURDIR, "\")   ; find last backslash in @CURDIR