Problem with ReReplace

2004-05-05 Thread Andrew Grosset
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]

Re: Problem with ReReplace

2004-05-05 Thread Jerry Johnson
What do you think this will do? Are you trying to remove all the brackets? Are the | meant to be ORs? If so, this might do it. We build a class out of the puncuation you want to remove. The [] need to be handled seperately since they are special and can't be placed in a class. cfset

RE: Problem with ReReplace

2004-05-05 Thread Barney Boisvert
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

Re: Problem with ReReplace

2004-05-05 Thread Andrew Grosset
What do you think this will do? Are you trying to remove all the brackets? Are the | meant to be ORs? Many thanks, I was trying to remove the brackets and I thought they had to be seperated by |. Your solution works great! [Todays Threads] [This Message] [Subscription] [Fast

Re: Problem with ReReplace

2004-05-05 Thread Jerry Johnson
Glad to hear it.If you are using CFMX, the second response was much better. But I don't think it will work correctly on CF5 or earlier. Jerry Johnson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]