InStr(
     string:string,
     string:search,
     [int:start],
     [string:flags]
)
int

Arguments

string

String to search.

search

String to search for.

start

Optional. Position to begin search at. If not specified the entire string is searched, otherwise:

flags

Optional. The optional flags are:
cConsider case when performing the search (case-sensitive)
rReverse search for the last match instead of the first
iIgnore diacritics
wOnly match whole words
sOnly match exactly at the specified start position

Return value

Position of the match, or -1 for no match.

Description

Returns the position that search was found within string, or -1 if not found.

Example:

Output(InStr("The quick brown fox", "quick"))
--> 4

See also:
Count