> Is there some magic CF function to take strings like this an strip the 
> alpha character?

With CF8 (and equiv) there is a new rematch function, which would allow:

<cfset NumbersOnly = rematch( 'Image12334blue' , '\d+' )/>


Which is selecting the numbers rather than stripping the non-numbers.

The difference in behaviour would be if you had non-consecutive numbers, e.g. 
"Image12334blue1" - with the rereplace method, you would get "123341", but with 
rematch you get an array containing "12334" and "1".



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/cf-talk/message.cfm/messageid:314954
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