I've been burnt with that one too. Is it me or is it not well documented? -----Original Message----- From: Lofback, Chris [mailto:[EMAIL PROTECTED]] Sent: 27 November 2002 16:20 To: CF-Talk Subject: RE: silly rereplace
The POSIX character class is case-sensitive. Try this: <cfset form.SSN = reReplace( form.SSN, "[[:space:]]", "", "all" )> Chris Lofback Sr. Web Developer TRX Integration 28051 US 19 N., Ste. C Clearwater, FL 33761 www.trxi.com > -----Original Message----- > From: Smith, Matthew P -CONT(DYN) > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 27, 2002 10:59 AM > To: CF-Talk > Subject: RE: silly rereplace > > > Yep, works great. Thanks for the help. > > Any reason why the original doesn't work? It seems like it > should, or am I > misunderstanding the [[:Space:]] ? > > > >>-----Original Message----- > >>From: Tony Weeg [mailto:[EMAIL PROTECTED]] > >>Sent: Wednesday, November 27, 2002 9:50 AM > >>To: CF-Talk > >>Subject: RE: silly rereplace > >> > >><cfset form.SSN = Replace(form.SSN, ' ', '', 'all')> > >> > >>why not just do this? > >> > >>..tony > >> > >>Tony Weeg > >>Senior Web Developer > >>Information System Design > >>Navtrak, Inc. > >>Fleet Management Solutions > >>www.navtrak.net > >>410.548.2337 > >> > >> > >>-----Original Message----- > >>From: Smith, Matthew P -CONT(DYN) > [mailto:[EMAIL PROTECTED]] > >> > >>Sent: Wednesday, November 27, 2002 10:28 AM > >>To: CF-Talk > >>Subject: silly rereplace > >> > >> > >><cfset form.SSN = reReplace( form.SSN, "[[:Space:]]", "", "all" )> > >> > >>this is not stripping out spaces like I want it too...? > >> > >> > >> > >> > >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

