Inside Coldfusion MX

"-->

Find (substring, string [, start ])

Description

Finds the first occurrence of a substring in a string. An optional start point can be provided, and the search is case-sensitive.

Example

<cfset exampleString = "This is my example string to Demonstrate the find function."> <cfoutput> The position at which Demonstrate starts is #find(exampleString, "Demonstrate")# </cfoutput>

Категории