find

Finds the first occurrence of srchstring in string and returns its position.

Syntax

find(string, srchstring)

Parameters

string

Specifies the original string.

srchstring

Specifies the string to search for.

Returns

Returns the position of srchstring in the string or -1 if not found.