spanIncluding

Gets characters from a string, from the beginning to a
character that is not in a specified set of characters. The
search is case-sensitive.

spanIncluding(String, set) → returns string

Argument Reference

String string
Required

set string
Required

A string or a variable that contains a set of characters.
Must contain one or more characters

Examples
Sample code invoking the spanIncluding function

<cfoutput> 
 #SpanIncluding('This is Great', 'p')# 
 </cfoutput>  

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub