<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>SPANEXCLUDING</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">SPANEXCLUDING</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Gets characters from a string, from the beginning to a character that is in a specified set of characters. The search is case-sensitive.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
A string; characters from string, from the beginning to a character that is in set.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
String functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>SpanExcluding(string, set)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
GetToken, SpanIncluding; "Caching parts of ColdFusion pages" in Chapter&#160;13, "Designing and Optimizing a ColdFusion&#160;Application," in ColdFusion MX Developer's Guide
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;h3&gt;SpanExcluding Example&lt;/h3&gt;

&lt;cfif IsDefined(&quot;FORM.myString&quot;)&gt;
&lt;p&gt;Your string was &lt;cfoutput&gt;#FORM.myString#&lt;/cfoutput&gt;
&lt;p&gt;Your set of characters was &lt;cfoutput&gt;#FORM.mySet#&lt;/cfoutput&gt;
&lt;p&gt;Your string up until one of the characters in the set is:
&lt;cfoutput&gt;#SpanExcluding(FORM.myString, FORM.mySet)#&lt;/cfoutput&gt;
&lt;/cfif&gt;

&lt;p&gt;Returns all characters from string from beginning to a character
from the set of characters. The search is case-sensitive.

&lt;form method = post action = &quot;spanexcluding.cfm&quot;&gt;
&lt;p&gt;Enter a string:
&lt;br&gt;&lt;input type = &quot;Text&quot; name = &quot;myString&quot; value = &quot;Hey, you!&quot;&gt;
&lt;p&gt;And a set of characters:
&lt;br&gt;&lt;input type = &quot;Text&quot; name = &quot;mySet&quot; value = &quot;Ey&quot;&gt;
&lt;br&gt;&lt;input type = &quot;Submit&quot; name = &quot;&quot;&gt;
&lt;/form&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="STRING">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">STRING</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>A string or a variable that contains one</p>

  </td>
  </tr>
  </table>
</div>
<div id="SET">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">SET</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>A string or a variable that contains one. Must contain one or more characters</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
