macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Extract from String

Subject: Re: Extract from String
From: "Fernis"
Date: Wed, 1 Aug 2007 07:35:51 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion

I find this the most logical way for me. It handles multiple file extensions as 
well, removing only the last one.

 <cfset yourString = "messagepost.cfm">
 <cfset fileName = listDeleteAt(yourString,listLen(yourString,"."),".")>
 <cfoutput>#fileName#</cfoutput>

 -Fernis


<Prev in Thread] Current Thread [Next in Thread>