Fred jambukeswaran wrote:

> I am trying to convert the value 54545 to an array that looks like
> MyArray[1] = 5
> MyArray[2] = 4
> MyArray[3] = 5
> MyArray[4] = 4
> MyArray[5] = 5...
> 
> If there a better way then looping over the length of the string and
> populating the array?


<cfscript>
string = REReplace(string,".","\1,","All");
myArray = ListToArray(string);
</cfscript>

But I think I heard something about CF regex only being able to handle 
about 20K characters.

Jochem
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to