string.findOneOf()

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

string.findOneOf( set=string, start=number )

Returns: Number

Argument Description
set
string, required

String that contains one or more characters to search for.

start
number, optional

Start position of search.

Examples

dump("I".findoneof("I Love Lucee"));
dump("Lu".findoneof("I Love Lucee"));

See also