Interesting use of Regex there. I actually thought that couldn't be done
with Regex but you proved me wrong (not hard to do). What's your take on the
speed difference between the two options? Neglible?


andy

-----Original Message-----
From: s. isaac dealey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2008 2:57 PM
To: cf-talk
Subject: Re: Replace specific character in a string


No but there are a couple of options... 

string = rereplace(string,"^(.{6}).(.*)$","\1$\2") 

or 

string = insert("$",removechars(string,7,1),7) 

If you do this sort of thing a lot, you could write a UDF for it. 

hth



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314884
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