Well, in this case the question was very specific - remove the spaces. But
in order to remove any non number, you could simply do:
<CFSET ZIP = REReplace(ZIP,"[^[[:digit:]]]*","","ALL")>
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Billy Cravens [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 6:01 PM
> To: CF-Talk
> Subject: RE: Remove spaces
>
>
> What happens if a user types in "$%! #*(" for their zip code? Always
> assume the worst.
>
> ---
> Billy Cravens
> HR Systems, EDS
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Rich Tretola [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 4:37 PM
> To: CF-Talk
> Subject: RE: Remove spaces
>
>
> No you are right but I really don't need to get that involved. The
> <CFSET Zip = REReplace(Zip,"[[:space:]]*","","ALL")> worked just fine.
>
> Thanks,
> Rich
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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