title: Coldfusion: How to split a string into a set of variables
body: <p>I'm trying to teach myself ColdFusion. </p>
  
  <p>I have a string coming in from the database in this format:</p>
  
  <pre><code>domain.com
  &lt;br/&gt;
  www.facebook.com/facebookpage
  &lt;br/&gt;
  http://instagram.com/instagrampage
  </code></pre>
  
  <p>It is all coming from #getRacer.txtDescription#. The format of this text will always be the same. </p>
  
  <p>I need to split it into 3 variables. I tried this (derived from the example on the adobe website)</p>
  
  <pre><code>&lt;h3&gt;ListToArray Example&lt;/h3&gt;
  &lt;cfset myList = ValueList(getRacer.txtDescription)&gt;
  &lt;p&gt;My list is a list with &lt;cfoutput&gt;#ListLen(myList)#&lt;/cfoutput&gt; elements.
  &lt;cfset myArrayList = ListToArray(myList,'&lt;br/&gt;')&gt;
  &lt;p&gt;My array list is an array with 
  &lt;cfoutput&gt;#ArrayLen(myArrayList)#&lt;/cfoutput&gt; elements.
  </code></pre>
  
  <p>I somehow ended up with 11 items in the array. </p>
  
  <p>Thank you</p>