Find
 
 
 

Categories

  • String

Description

Returns the position of the first instance of a substring found in another string. If the substring is not found, -1 is returned.

Ports

Inputs

Value

The string in which to search.

To Find

The substring to search for. Wildcards are not supported. The empty string is always found at the first possible location.

Start

The position in Value at which to begin searching, where 0 is the start of the string. You can use a value of –1 to specify the end of the string when searching from the right.

Case

Whether the search considers case. If this is off, searching for a will find A and vice versa.

From Right

Searches from the right instead of the left. Make sure to set Start to an appropriate value such as -1 for the end of the Value string.

Outputs

Result

The position of the first instance of To Find in Value, or -1 if not found.