findLastNoCase

Returns the position of the last occurrence of a substring in a string, or 0 if it isn't found. The search is case-insensitive.

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

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

substring string
Required

The string to search for.

string string
Required

The string to search in.

start numeric
Default: 1

The position to search backward from.

Examples
Sample code invoking the findLastNoCase function

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

Fork me on GitHub