Findnocase - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

FindNoCase

Description
Finds the first occurrence of a substring in a string, from a specified start position. If substring is
not in string, returns zero. The search is case-insensitive.
Returns
The position of substring in string; or 0, if substring is not in string.
Category
String functions
Function syntax
FindNoCase(substring, string [, start ])
See also
Find, CompareNoCase, FindOneOf, REFind,
Parameters
Parameter
substring
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>
474
Chapter 3: ColdFusion Functions
Description
A string or a variable that contains one. String for which to search.
A string or a variable that contains one. String in which to search.
Start position of search.
Replace

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents