Spanexcluding - MACROMEDIA COLDFUSION MX 61-CFML Reference

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

Advertisement

SpanExcluding

Description
Gets characters from a string
characters. The search is case-sensitive.
Returns
A string; characters from
Category
String functions
Function syntax
SpanExcluding(string, set)
See also
GetToken,
SpanIncluding
Parameters
Parameter
string
set
Example
<h3>SpanExcluding Example</h3>
<cfif IsDefined("FORM.myString")>
<p>Your string was <cfoutput>#FORM.myString#</cfoutput>
<p>Your set of characters was <cfoutput>#FORM.mySet#</cfoutput>
<p>Your string up until one of the characters in the set is:
<cfoutput>#SpanExcluding(FORM.myString, FORM.mySet)#</cfoutput>
</cfif>
<p>Returns all characters from string from beginning to a character
from the set of characters. The search is case-sensitive.
<form action = "spanexcluding.cfm">
<p>Enter a string:
<br><input type = "Text" name = "myString" value = "Hey, you!">
<p>And a set of characters:
<br><input type = "Text" name = "mySet" value = "Ey">
<br><input type = "Submit" name = "">
</form>
from the beginning to a character that is in a specified set of
,
from the beginning to a character that is in
string,
Description
A string or a variable that contains one
A string or a variable that contains one. Must contain one or more characters
.
set
SpanExcluding
685

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents