Did you attempt to search for this yourself first? A Google search for "non numeric" regex brings back over 60,000 results. Not trying to be mean, but you are expected to at least make an effort to solve the problem before you ask for help on a list.
On 8/14/07, Matthew Smith <[EMAIL PROTECTED]> wrote: > > We are having an issue with users entering their phone numbers and credit > card info. How would I strip a string of all non-numeric characters. I'm > sure it involves rereplace() but I'm no good with regular > expressions. Thanks for any help. > > Right now for the credit card I have this which just strips out spaces and > dashes: > <cfset attributes.billingCardNumber = replace(attributes.billingCardNumber, > " ", "", "all")> > <cfset attributes.billingCardNumber = replace(attributes.billingCardNumber, > "-", "", "all")> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286196 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

