Don't know for sure but it appears the delimiter is acting as a regular
expression.  Square brakets in a regular expression indicate optional
components.

So, as a shot in the dark you could try "\[pagebreak\]"

HTH

Shawn Grover

-----Original Message-----
From: Wallick, Mike [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 9:54 AM
To: CF-Talk
Subject: Complex List Delimiter


Quick question for you gurus out there....


I want to use a text delimiter for my content that's in a database. I want
to use [pagebreak] as the delimiter. In php, I would use:

// Split the text into an array of pages
$textarray = split("\[pagebreak]", $content);

However, in ColdFusion, ListToArray(content, "[pagebreak]") (or some similar
function) is interpreted as any of the characters in the [pagebreak] string
could be a delimiter (i.e. [ p a g e b r e a k ]).

Any ideas?

mike wallick
* web application developer
* [EMAIL PROTECTED]
* 651.628.5377
* http://www.securecomputing.com


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to