This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]




This operator returns a number with the location of the first occurrence of a substring within the source string. The operator searches for literal strings, not regular expressions. Matches are case sensitive. The offset is zero-based (position 1 is zero). If the string is not found, String.find() returns -1.

For example, if $MyString is "I do not like green eggs and ham":

$MyString.find("not") returns 5

$MyString.find("blue") returns -1 (not found in match string)

$MyString.find("Not") returns -1 (not found - case-sensitive matching)

A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : String.find("string")