You could just use ListFirst/ListLast?

i.e. <cfset ext = ListLast(filename, '.')>

-----Original Message-----
From: Robert Rawlins - Think Blue
[mailto:[EMAIL PROTECTED] 
Sent: 19 June 2007 10:33
To: CF-Talk
Subject: REGEX File Extention

Hello Guys,

 

My REGEX skills are pretty horrible. I'm looking for a way to get the
file
extension from a string, examples of the strings are:

 

Somthing.gif

Thisone.jpg

Ooh.mp3

Nice.fla

 

What's the best way to achieve this? Effectively I want everything to
the
right of the dot.

 

Thanks guys,

 

Rob





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281497
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