> 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:316582
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