Would it not be simpler to use... reReplace(mystring, '[\W]', '', 'all')
-- Jay > -----Original Message----- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: 23 January 2006 16:29 > To: CF-Community > Subject: Re: Ben, Minister of Doom, and Regex wonder... help... > > so anything that's not alphanumeric? > > rereplaceNoCase(mystring, '[^a-z0-9]', '', 'all') > > i'd certainly defer to the esteemed Ninja Doom. just wanted > to take a shot :) > > On 1/23/06, Tony <[EMAIL PROTECTED]> wrote: > > what regex can i use to strip all special characters and > spaces from a string? > > i keep effing it up, and am just plain dumb :) > > > > thanks man. > > tony > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:5:193827 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
