RE: listfunction problems

2004-06-23 Thread Pascal Peters
REReplace(list,",(\s*,)+",",","all") > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: woensdag 23 juni 2004 19:59 > To: CF-Talk > Subject: listfunction problems > > Hi folks, I have a list > like: a, b, d, , f, g, , , , s > But I would like to have: > a,

Re: listfunction problems

2004-06-23 Thread Ubqtous
On Wed, 23 Jun 2004 14:05:00 -0400, Ubqtous <[EMAIL PROTECTED]> wrote: > > replace(list,",,",",","all") Oops, wasn't paying attention. This won't catch more than 2 consecutive. This might work, assuming the elements are truly empty: rereplace( list , "[,]{2,}" , "," , "all") -- Ubqtous [Toda

Re: listfunction problems

2004-06-23 Thread Ubqtous
On Wed, 23 Jun 2004 19:58:45 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi folks, I have a list > like: a, b, d, , f, g, , , , s > But I would like to have: > a, b, d, f, g, s > > How can I get rid of the empty > elements in the list ? How about replace all double commas? Kinda klud

Re: listfunction problems

2004-06-23 Thread Marlon Moyer
http://www.cflib.org/udf.cfm?ID=919 should do the trick Marlon On Wed, 23 Jun 2004 19:58:45 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi folks, I have a list > like: a, b, d, , f, g, , , , s > But I would like to have: > a, b, d, f, g, s > > How can I get rid of the empty > eleme

RE: listfunction problems

2004-06-23 Thread Barney Boisvert
          That's untested, but should work. Cheers, barneyb > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 23, 2004 10:59 AM > To: CF-Talk > Subject: listfunction problems > > Hi folks, I have a list > like: a, b, d, , f, g, , , ,