Find()

edit

Finds the first occurrence of a substring in a string, from a specified start position.

The search is case-sensitive.

Find( substring=string, string=string, start=number );

Returns: Number

Argument Description Default
substring
string, required
edit

String for which to search.

string
string, required
edit

String in which to search.

start
number, optional
edit

Start position of search.

1

Examples

edit
	writeOutput(find("tree","Grow the tree, Save the world"));//10

//Member function str="I love lucee"; writeOutput(str.find('lucee'));//8

See also