> I am very new to regex and I basically need to clean a phone number. I need 
> all numbers entered to look like 5555555555. I am using REReplace(foo.foo, 
> "[^0-9]", "", "ALL") and it is cleaning 555-555-5555 but not (555)444 4444.

There's no reason that shouldn't work. Doing
rereplace(input,'[^0-9]','','all') will replace everything that is not
0123456789 with blank.

You could also try doing rereplace(input,'\D','','all') which will
have the same effect ( \D is the opposite of \d and \d is shorthand
for [0-9] ).

I suspect maybe some other part of your code is interfering with the
results in some way.

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

Archive: http://www.houseoffusion.com/groups/regex/message.cfm/messageid:1225
Subscription: http://www.houseoffusion.com/groups/regex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to