Inside Coldfusion MX

"-->

REFind (reg_expression, string [, start] [, returnsubexpressions])

Description

Performs a case-sensitive search for the position and length of the first occurrence of a regular expression (RE) in a string, starting from a specific position.

Example

<cfset exampleString = "This is an example that will show how to use the refind function."> <cfset exampleVar = Refind("show",exampleString, 1)> <cfoutput> The word show starts at position #exampleVar# </cfoutput>

Категории