MACROMEDIA COLFUSION MX 7-CFML Reference page 588

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

FindOneOf
Description
Finds the first occurrence of any one of a set of characters in a string, from a specified start position.
The search is case-sensitive.
Returns
The position of the first member of set found in string; or 0, if no member of set is found in string.
Category
String functions
Function syntax
FindOneOf(set, string [, start ])
See also
,
,
Find
Compare
Parameters
Parameter
set
string
start
Example
<cfset stringToSearch = "The quick brown fox jumped over the lazy dog.">
#find("the",stringToSearch)#<br>
#find("the",stringToSearch,35)#<br>
#find("no such substring",stringToSearch)#<br>
<br>
#findnocase("the",stringToSearch)#<br>
#findnocase("the",stringToSearch,5)#<br>
#findnocase("no such substring",stringToSearch)#<br>
<br>
#findoneof("aeiou",stringToSearch)#<br>
#findoneof("aeiou",stringToSearch,4)#<br>
#findoneof("@%^*()",stringToSearch)#<br>
588
Chapter 3: ColdFusion Functions
REFind
Description
A string or a variable that contains one. String that contains one or more characters
to search for.
A string or a variable that contains one. String in which to search.
Start position of search.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents