Re: REReplace: Manipulating Backreferences

2004-02-05 Thread Ben Doom
Not directly, that I've ever been able to figure out.What I have done (though it's kind of a pain) is to use refind to grab out the bits I want, and do something like string = left(string, pos[1] - 1) emailAntiSpam(mid(string, pos[1], len[1])) right(string, pos[1]+len[1]+1, len(string));

Re: REReplace: Manipulating Backreferences

2004-02-05 Thread Jamie Jackson
Yeah, I've already got the UDF written, I was just thinking how nice it would be if I could manipulate the backreference directly. It would simplify the code a lot. Thanks, Jamie On Thu, 05 Feb 2004 13:50:27 -0500, in cf-talk you wrote: Not directly, that I've ever been able to figure out.What

RE: REReplace: Manipulating Backreferences

2004-02-05 Thread Taco Fleur
Yeah you can use back references, it would be something like the following Pseudo code: your spam email = taco at coldfusionist.com find (\.*)\sat\s(\.*) replace with [EMAIL PROTECTED] The regex needs adjustment, but it displays how the back references could do the trick Taco Fleur

Re: REReplace: Manipulating Backreferences

2004-02-05 Thread Jamie Jackson
That's not quite what I've got going on. Notice that while you used backreferences, you didn't *process* them at all. (Maybe that's how I should have phrased it: Is it possible to *process* backreferences within REReplace?) Please remember that AFAIK, what I'm asking about is impossible, but I

RE: REReplace: Manipulating Backreferences

2004-02-05 Thread Barney Boisvert
- From: Jamie Jackson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 12:43 PM To: CF-Talk Subject: Re: REReplace: Manipulating Backreferences That's not quite what I've got going on. Notice that while you used backreferences, you didn't *process* them at all. (Maybe that's how I

Re: REReplace: Manipulating Backreferences

2004-02-05 Thread Jamie Jackson
the backreference matches except stick it in the replace string somewhere. Cheers, barneyb -Original Message- From: Jamie Jackson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 12:43 PM To: CF-Talk Subject: Re: REReplace: Manipulating Backreferences That's not quite what I've