Welcome to WebmasterWorld Guest from 54.147.63.124

Forum Moderators: phranque

Message Too Old, No Replies

ColdFusion ReplaceList()

     
10:08 pm on Mar 13, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 29, 2003
posts:398
votes: 0


I would like to use the the ReplaceList function to replace certain characters with certain other characters, however. This is achieved, of course, by using two comma delimited quote-surrounded attributes. Unfortunately, one of the characters I'm trying to replace, is, indeed, a COMMA! I'm at a loss of what to do :( It will look something like this

#ReplaceList(query1.variable1, "?,!,,", "!,?,,", "all")#

help :(

1:49 pm on Mar 15, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 17, 2004
posts:5
votes: 0


You need to use the REPLACE function instead.

#Replace(your_String, ",", "-", "All")#

this would replace commas with dashes.