Try this out
<cfoutput>
#ListChangeDelims("aa;bb;;;cc","|",";")#<br>
#Replace("aa;bb;;;cc",";","|","ALL")#
</cfoutput>
Replace will replace all occurrences of ; by a |
Listchangedelims will replace the three consecutive ; as one |
Pascal Peters
Macromedia Certified Instructor
Certified ColdFusion (5.0) Developer
LR Technologies, Belgium
Tel +32 2 639 68 70
Fax +32 2 639 68 99
Email [EMAIL PROTECTED]
Web www.lrt.be
-----Original Message-----
From: Rich Wild [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 2 november 2001 15:58
To: CF-Talk
Subject: RE: commas in lists
ListChangeDelims() is wierd though in that it will allow you to replace
a
single delimiter with multiple delimiters eg:
listchangedelims(thislist, '","', ',')
I find this unexpected behaviour in that other list functions only act
on
single delimiters. (ie listfind(thislist, 'myvalue', '",') uses '"' or
','
as delimiters, not '",'). I would expect multiple delimiters to be not
allowed.
I'm struggling to find the differences here between listchangedelims()
and
replace().
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
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