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 for the spanIncluding function

String

Required: Yes

set

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

Examples sample code invoking the spanIncluding function


Tag Example

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

Fork me on GitHub