Excellent!
Now another question:
- Do you have a variation of this that YOU would use to check for the
existence of (and potentially return) non-alpha characters in the same
string, before replacing them? I.e., to pop-up a java window and say
"Sorry.. these characters (.#) are not allowed in the username."
Lee
> -----Original Message-----
> From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 11:40 PM
> To: CF-Talk
> Subject: Re: Stripping non-alpha characters...
>
>
> Try:
>
> <cfset x = "a1B,2c.3D4">
> <cfset y = ReReplace(x, "[^A-Za-z]", "", "All")>
> <cfoutput>#y#</cfoutput>
>
> HTH
> Dick
>
> At 11:13 PM -0700 7/3/01, Lee Fuller wrote:
> >Anyone have a quick, down and dirty method of stripping non-alpha
> >characters, that they'd like to share? Something that would be good to
> >check/strip potential login names for email (as an example).
> >
> >TTAIA!
> >
> >
> >Lee Fuller
> >Chief Technical Officer
> >PrimeDNA Corporation / AAA Web Hosting Corporation
> >"We ARE the net."
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists