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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists