Lucee Function Reference

find()

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

Example

find(string substring,string string,[number start]):number

Category

string,find

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
substring string  Yes   String for which to search.  
string string  Yes   String in which to search.  
start number  No 1 Start position of search from the left.