Returns the index value in the input string where a specified matching string is located in provided column, string literal, or function returning a string. Search is conducted left-to-right.

You can also search a string from the right. For more information, see RIGHTFIND Function.

Column reference example:

find(MyName,'find this',true,0)

: Searches the MyName column value for the string find this from the beginning of the value, ignoring case. If a match is found, the index value where the string is located is returned. 

String literal example:

find('Hello, World','lo',false,2)

Output: Searches the string Hello, World for the string lo, in a case-sensitive search, beginning at the third character in the string. Since the match is found at the fourth character, the value 3 is returned.

If example:

if(find(SearchPool,'FindIt') >= 0, 'found it', '')

: Searches the SearchPool column value for the string FindIt from the beginning of the value (default). Default behavior is to not ignore case. If the string is found, the value found it is returned. Otherwise, the column is empty.

find(input_string,string_pattern,[ignore_case], [start_index])

ArgumentRequired?Data TypeDescription
input_stringYstringName of the column, function returning a string, or string literal to be applied to the function
string_patternYstringName of column, function returning a string, or string literal or pattern to find
ignore_caseNbooleanIf true, a case-insensitive match is performed. Default is false.
start_indexNinteger (non-negative)

If specified, this value identifies the start index value of the source data to search for a match.

If not specified, the entire string is searched.


Name of the item to be searched. Valid values can be:

Missing values generate the start-index parameter value.

Required?Data TypeExample Value
YesString literal, function returning a string, or column reference (String, Array, or Object)myColumn


Column of strings, , function returning a string, string literal or pattern to find. An input value can be a literal, , or a regular expression.

Required?Data TypeExample Value
YesString literal or pattern'Hello'


If true, the FIND function ignores case when trying to match the string literal or pattern value.

Default value is false, which means that case-sensitive matching is performed by default.

Required?Data TypeExample Value


The index of the character in the column or string literal value at which to begin the search. For example, a value of 2 instructs the FIND function to begin searching from the third character in the column or string value.

NOTE: Index values begin at 0. If not specified, the default value is 0, which searches the entire string.

Required?Data TypeExample Value
NoInteger (non-negative)2

Example - Locate product purchases in transaction stream


You have the simplified transaction stream listed below in which master information about a transaction (TransactionId and CustomerId) is paired with order detail information that is brought into the application as an array in the OrderDetail column. The array column contains information about product ID, quantity, and the type of transaction. 


The transaction stream includes test transactions, which are identified by the value TEST for TransType in the detail column. You want to remove these transactions early in the process, which should simplify your dataset and speed up its processing.


First, you must identify the records that contain the test transaction value. The following transform generates a new column containing true/false values for whether the value "TEST" appears in the OrderDetail transform.

Tip: You should include the double-quotes around the value, in case the other fields in the array could contain some version of the value TEST. Note that the double quotes need to be escaped, as in the value below.

When the step is added to the recipe, the find_OrderDetail column is generated, containing the index value returned by the FIND function. In this case, there is only one row that contains a value: 42 for the third transaction.

You can then add the following step to keep the rows where the FIND function returned a null value in the find_OrderDetail column:



You can delete the find_OrderDetail column at this time.