Re: Stripping and replacing last "\" from a variable

2003-09-22 Thread Pete Freitag
>Whats the easist way to strip the last "\" from var1 and insert a "," >(comma)? > > try: ReReplace(yourstring,"\\$",",") The $ character in regular expressions represents the end of a string, and the \ had to be escaped (that's why it's there twice). __ Pete Frei

RE: Stripping and replacing last "\" from a variable

2003-09-22 Thread Mike Townend
GetDirectoryFromPath() Will probably do it... HTH -Original Message- From: Bushy [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 16:55 To: CF-Talk Subject: re: Stripping and replacing last "\" from a variable Hi, Whats the easist way to strip the last "\

RE: Stripping and replacing last "\" from a variable

2003-09-22 Thread Mark A. Kruger - CFG
Buhy, How about -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 &qu

re: Stripping and replacing last "\" from a variable

2003-09-22 Thread Bushy
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:137948 Archives: http://www.house