Buhy,

How about

<cfset result = reverse(replace(reverse(var),"/",","))>

-----Original Message-----
From: Bushy [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 10:55 AM
To: CF-Talk
Subject: re: Stripping and replacing last "\" from a variable


Hi,

Whats the easist way to strip the last "\" from var1 and insert a ","
(comma)?

var 1 = d:\temp\mywork\

Results: d:\temp\mywork,




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137949
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to