<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>SPANINCLUDING</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">SPANINCLUDING</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 not 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 not 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>SpanIncluding(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, SpanExcluding; "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;SpanIncluding 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, until the characters in the set have been found, is:
&lt;cfoutput&gt;#SpanIncluding(FORM.myString, FORM.mySet)#&lt;/cfoutput&gt;
&lt;/cfif&gt;

&lt;p&gt;Returns characters of a string, from beginning to a character 
that is not in set. The search is case-sensitive.

&lt;form action = &quot;spanincluding.cfm&quot; method=&quot;post&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,H&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 the search string.</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 a set of characters. Must contain one or more characters.</p>

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

  </body>
</html>
