InStrRev

Returns the rightmost starting position of one string inside another.

Usage:

InStrRev( x, y )
InStrRev( x, y, z )
InStrRev( x, y, z, w )

Parameters:

x The input string to check to see the position of a substring
y The substring to search for in x.
z The starting position to start searching in x 1) OPTIONAL, default is -1, which is the end of the string
w This decides whether to compare case-sensitive(0) or not (1) OPTIONAL, default is 0

Returns:

A number.

Examples:

Crystal Syntax:

InStrRev( "aaabbbaaaaaabbb","bbb" )  // Returns 13.

Basic Syntax:

formula = InStrRev( "aaabbbaaaaaabbb","bBb",7,0 )  // Returns 0

See also:

1)
Since this function searches right to left, only occurrances before this index can be found!
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help - InStrRev

Loading application