Don’t Forget About “contains”

I have seen several people use functions like find, findNoCase and findOneOf to search strings for substrings. Don’t forget about the “contains” comparison operator. It lets you do things like this:

<cfif string1 contains string2>
It's in there.
</cfif>

… as opposed to …

<cfif findNoCase(string1, string2) neq 0>
It's in there.
</cfif>

Keep in mind that “contains” does not compare case.