My follow-up posted last night didn't show up. So, I'm re-doing it now. Execellent, Peter, thank you very much. I'll use
rereplace( FileName , '\W' , '' , 'all' ) On the extension stuff I have a way to address it. Don >> rereplace(foo, '[^\w]', '', 'all') >> will replace any non-alphanumeric character > >No need to complicate things with an inverted character class. >\W is same as [^\w] > >Also, this bugs me immensely: >> assuming 'foo' is the file name > >JUST USE THE VARIABLE FILENAME THEN! > >So: >rereplace( FileName , '\W' , '' , 'all' ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:316653 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4