What are you trying to do?

If you're trying to remove all the slashes, parens, brackets and braces,
then you'll need to escape those characters, as they have special meaning in
regular expressions.  Try this one:

<cfset other = "\\|\(|\)|\{|\}|\[|\]" />

You can also make this a easier by using a character class:

<cfset other = "[\\[\]{}()]" />

Finally, you don't need the NoCase version, since you're not using letters.

Cheers,
barneyb

> -----Original Message-----
> From: Andrew Grosset [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 05, 2004 11:07 AM
> To: CF-Talk
> Subject: Problem with ReReplace
>
> I can't seem to get this to work, any ideas?
>
> <cfset other="\|(|)|{|}|[|]">
> <cfset tmp = REReplaceNoCase(tmp,other,"","ALL")>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to