>><cfset form.ssn = REReplace(form.SSN,"[^0-9]","","ALL")>
I was stripping out the dashes the step before, but this is a much better solution. Nice! Thanks to all for the help. Matthew P. Smith Web Developer, Object Oriented Naval Education & Training Professional Development & Technology Center (NETPDTC) (850)452-1001 ext. 1245 [EMAIL PROTECTED] >>-----Original Message----- >>From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] >>Sent: Wednesday, November 27, 2002 10:22 AM >>To: CF-Talk >>Subject: Re: silly rereplace >> >>> <cfset form.SSN = reReplace( form.SSN, "[[:Space:]]", "", "all" )> >> >>> this is not stripping out spaces like I want it too...? >> >>imho you're apt to have people try to put hyphens and stuff in there >>also... >>I'd probably go with a negate: >> >><cfset form.ssn = REReplace(form.SSN,"[^0-9]","","ALL")> >> >>s. isaac dealey 954-776-0046 >> >>new epoch http://www.turnkey.to >> >>lead architect, tapestry cms http://products.turnkey.to >> >>certified advanced coldfusion 5 developer >>http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 >> >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

