Plenty of things to do here.
1.) Use regular expression.
2.) Treat the string as a list using the "." as a delimiter (e.g.: <cfset
name = listFirst(varname,'.')> )

On Nov 7, 2007 11:41 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:

> This seems so simple, yet I couldn't figure out the answer even after
> going through the list and strings functions in the docs for CF 8.
>
> I want to return the characters in the name of a photo preceding the
> period.
>
> i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from the
> filename so I can alter the filename and then "reattach" the ".jpg".
>
> Seems so simple, but I can't figure out how to get it done.
>
> Rick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

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