In true Perl fashion, there's more than one way to do it (tho, I wouldn't
recommend anything but the first):
Just to name a few ...
-Rick
-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 11:54 AM
To: '[EMAIL PROTECT
If the goal is to just output it to the screen as a list with one item on
each line try:
#replace(yourString, ",", "", "ALL")#
This replaces all the commas (your delimiter which is unique) with
tags.
--Doug
-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Thursda
#singleword#
will return:
word1
word2
word3
Robert Forsyth
Director of Web Operations
Irides, LLC
Phone: 202-364-7831
Fax: 202-364-2481
-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 11:54 AM
To: '[EMAIL PROTECTED]'
Subject: splitt
Do you wish to convert your list to an array? If so, there's the function
ListToArray. If you are wanting to put each element on a blank line, you
could loop through the array and output each element at a time, followed by
.
--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite
GetToken
- Original Message -
From: "Peter Benoit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 24, 2000 11:54 AM
Subject: splitting strings
> if I have a string like word1,word2,word3
>
> How could I split it in Cold Fusion into ?
>
> word1
> word2
> word3
>
> Tha
> if I have a string like word1,word2,word3
>
> How could I split it in Cold Fusion into ?
>
> word1
> word2
> word3
You could use ListToArray if you want to save or use them elsewhere.
Something like:
If you just want to print:
word1
word2
word3
You could do something like
",",")>
and
since "word1,word2,word3" is a comma delimited list, use list functions.
ex,
...
Chris Olive,
DOEHRS Website Administrator
-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 11:54 AM
To: '[EMAIL PROTECTED]'
Subject: splitting strings
7 matches
Mail list logo