find() Function

Function

find( search_text, within_text, start_num )

Returns index location of case-sensitive substring with given string. Returns the one-based location index of the first character of the first match.

See also: search()

Parameters

Keyword Type Description

search_text

Text

The text that will be searched for.

within_text

Text

The text that will be searched in.

start_num

Number

The index of the first character within the within_text value from which to start searching. 0 by default.

Returns

Number

Examples

You can experiment with this function in the test box below.

Test Input

find("to","boston",1) returns 4

Open in Github Built: Fri, Nov 19, 2021 (11:59:11 AM)

On This Page

FEEDBACK