InStrRev
The InStrRev function returns the position of the first occurrence of one string within another. The search begins at the last character of the string.
Syntax :
InStrRev(string1,string2,[start])
Parameters | Description |
---|---|
string1 | Required. The string to be searched. |
string2 | Required. The string expression to search for. |
start | Optional. Specifies the starting position for each search. The search begins at the last character position by default (-1). |
Example :
i = InStrRev(" Test ","Test")
Result :
i=2