better then just do something like

rereplace(left(filename, len(filename)-len(listlast(filename, ".")-1),
"\W", "", "all")

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Peter Boughton wrote:
> Hmmm, another thought...
> Don, when you say "image file name", is there a file extension to worry about 
> (i.e. jpg/png/etc)
>
> If so, you'll want to be doing something like this...
>
> rereplace( FileName , '(png|jpg|gif|tif|bmp)$' , '.\0' )
>
> ....after the initial replacement, to restore the dot that will otherwise be 
> stripped.
>
> (If you're manually adding the extension later, it doesn't matter) 
>
>   

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:316597
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to