Finds the first occurrence of a substring in a string, from a specified start position. If substring is not in string, returns zero. The search is case-insensitive.

findNoCase(substring, string [, start]) → returns numeric

Argument Reference

substring string

The string for which you are looking

string string

The string in which to search

start numeric
Default: 1

The position from which to start searching in the string

Sample code invoking the findNoCase function

findNoCase("s", "", 0)

Expected Result: 6

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub