View comments | RSS feed
Contents > CFML Reference > ColdFusion Functions > FindOneOf PreviousNext

FindOneOf

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.

The position of the first member of set found in string; or 0, if no member of set is found in string.

String functions

FindOneOf(set, string [, start ])

Find, Compare, REFind

Parameter

Description

set

A string or a variable that contains one. String that contains one or more characters to search for.

string

A string or a variable that contains one. String in which to search.

start

Start position of search.

<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>


Contents > CFML Reference > ColdFusion Functions > FindOneOf PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

Comments


No screen name said on May 18, 2005 at 1:13 PM :
Is there a way to search for the double uplifted commas (") using the Find() function? Is there some sort of escape character?
jrunrandy said on Jul 6, 2005 at 7:58 AM :
Use "" (that is, two double quotation marks).

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi82.htm