Thanks guys, List last worked a charm, why didnt I think of that ... DOH!
Rob -----Original Message----- From: Gert Franz [mailto:[EMAIL PROTECTED] Sent: 19 June 2007 10:43 To: CF-Talk Subject: Re: REGEX File Extention You don't need Regex for that. Just use ListLast(filename, ".")... Since it can happen that your filename looks like this: thisone.version.1.jpg So ListLast() will do the trick. Greetings / Grüsse Gert Franz Customer Care Railo Technologies GmbH [EMAIL PROTECTED] www.railo.ch Join our Mailing List / Treten Sie unserer Mailingliste bei: deutsch: http://de.groups.yahoo.com/group/railo/ english: http://groups.yahoo.com/group/railo_talk/ Robert Rawlins - Think Blue schrieb: > 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 > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281499 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

