• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

FindNoCase

Synopsis

                  FindNoCase(substring, string [, startpos])

Returns the position of the first occurrence of substring in string. If substring isn’t found, FindNoCase( ) returns 0. An optional starting position for the search can be specifies by the startpos parameter. FindNoCase( ) performs a case-insensitive search. Example:

<cfset MyString="This is a case-insensitive example of using the FindNoCase 
function to find a substring within a string.">
<cfset MySubString="find">
   
<cfoutput>
<b>String:</b> #MyString#<br>
<b>Substring:</b> #MySubstring#
<p>The first occurrence of <b>#MySubstring#</b> is at position 
#FindNoCase(MySubstring, MyString)#.
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint