or to be a little bit anal and clean it up
a bit prior to that since you "could" have

Cow ,Dog,Hat, Car, Cat

you could do this

<cfset yourNewString =
replace(replace(replace(yourOldString,',',',','all'),'
,',',','all'),',',', ','all')>

....tony

r e v o l u t i o n w e b d e s i g n
[EMAIL PROTECTED]
www.revolutionwebdesign.com

its only looks good to those who can see bad as well
-anonymous

-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 11:40 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Add spaces to a text string

<cfset yourNewString = replace(yourOldString,',',', ','all')>

try that

....tony

r e v o l u t i o n w e b d e s i g n
[EMAIL PROTECTED]
www.revolutionwebdesign.com

its only looks good to those who can see bad as well
-anonymous

-----Original Message-----
From: Les Irvin [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 11:38 PM
To: CF-Talk
Subject: Add spaces to a text string

How can I add a space after every comma in a list?  


I'd like to change this: "Dog,Cat,Horse,Cow"
to this: "Dog, Cat, Horse, Cow"


Thanks in advance for your help.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to