I usually replace the string with a non-used character (like 0248 - �), then use the list function to handle the lines.
<cfset textarray=ListToArray(replace(content,"[pagebreak]", "�","ALL"), "�")> Not quite as easy (or fast) as split and shift, but it gets the job done. Jerry Johnson >>> [EMAIL PROTECTED] 03/28/02 02:05PM >>> No, actually I mean the text string [pagebreak]. I'm not talking ASCII characters. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:48 PM To: CF-Talk Subject: RE: Complex List Delimiter when you say pagebreak, are you talking about a new line? if so it would ce defined as "#chr(13)##chr(10)#". Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -----Original Message----- From: Wallick, Mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 11: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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

