Skip to main content
Inspiring
June 11, 2013
Question

CF8 string replacement of \ with ' generates errors ?

  • June 11, 2013
  • 1 reply
  • 536 views

Hello,

I have been banging my head on this CF8 issue for too long now.   I have a string that

is of the form [~]'trespes[~] where I need to replace [~] with the escaped backslash

\   I have tried coldfusion replace, and java ReplaceAll but whenever I put any

escaped html into the fuction, replace(string,"[~]","\") I get an error from CF

Missing argument name. When using named parameters to a function,

every parameter must have a name.

If I use java ReplaceALL I get the same result.  Any insight to this problem would

be greatly appreciated, driving me batty..   I know it must be simple..  ugh.

Thanks,

Bob

This topic has been closed for replies.

1 reply

Inspiring
June 11, 2013
macslayerAuthor
Inspiring
June 11, 2013

Oh my, the dreaded ## was all it was..  Blush.. 

Thanks!!,

Bob