Find

Finds the first occurrence of a substring in a string, from a specified start position. The search is case-sensitive.

Find( substring, string [, start ] )

Returns: Number

Argument Description Default
substring
string, required

String for which to search.

string
string, required

String in which to search.

start
number, optional

Start position of search.

1

Examples

writeOutput(find("tree","Grow the tree, Save the world"));//10
	//Member function
	str="I love lucee";
	writeOutput(str.find('lucee'));//8

See also