That's a back reference. It refers to the fifth parenthesised section in
your regex. Of course you probably don't have a fifth parenthesised
section, so it's replaced with an empty string. You should be able to
just replace all "\" in your replacement string with "\\" first to fix
this.  

-----Original Message-----
From: Jonathan Gingerich [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 15 December 2005 3:01 p.m.
To: CF-Talk
Subject: backslash-digit interpreted in strings

I'm using REReplace and the replacement string contains a "\5".
The string came from a FORM, it was never a literal on a page.
Nonetheless, ColdFusion appears to process it out and it disappears.

Can anyone explain that this is not a straight out bug?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227071
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to