You need to add a caret just after the opening bracket. It inverts the
selected items and says "everything BUT these". 

-----Original Message-----
From: Steve Sequenzia [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 20, 2008 8:52 PM
To: CF-Talk
Subject: Re: Remove everything but numbers and letters from a string

Thanks for the help. I am trying to do it like this:

<cfset d2 = rereplace(lcase(d1) , '[A-Za-z0-9 ]', '','all') />

but (understandably) it is doing the reverse of what I want. It is replacing
all the numbers and letters. How do I change it so it only picks characters
that are not numbers and letters?
Thanks


>The regex to use would look like this "[A-Za-z0-9 ]"
>
>-Mike Chabot
>
>On Sun, Apr 20, 2008 at 5:17 PM, Mike Chabot <[EMAIL PROTECTED]> wrote:
>> > 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303850
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to