Try this <cfset foo = replace(bar, chr(35), "", "all") /> --
Russ Michaels -----Original Message----- From: John Cox [mailto:[EMAIL PROTECTED] Sent: 13 November 2006 00:51 To: CF-Talk Subject: How to strip a # I am trying to strip out a # (pound) from a string. I would have thought this would have worked: <cfset foo = replace(bar, "#", "", "all") /> That didn't work, as it thought it was a var (missing an argument). I tried to escape it: <cfset foo = replace(bar, "##", "", "all") /> But that didn't seem to work (i think it is looking for ## at that point). Any suggestions? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260134 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4