Re: Calling a function on a regex backreference - SOLVED

2006-11-02 Thread Ryan Mitchell
wonderful... the java solution worked a treat! thanks! ~| 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.

Re: Calling a function on a regex backreference - SOLVED

2006-11-02 Thread Rob Wilkerson
On 11/2/06, Ryan Mitchell [EMAIL PROTECTED] wrote: wonderful... the java solution worked a treat! thanks! Would you mind posting the final code? I'd like to see how that operates. Thanks. ~| Introducing the Fusion Authority

Re: Calling a function on a regex backreference - SOLVED

2006-11-02 Thread Ryan Mitchell
no problem: jrereplace(s,(mailto:)([EMAIL PROTECTED]),helper,'ALL'); the helper is a reference to a function, which takes 2 params, 1 is the full matched string, 2 is an array of the portions to the matched string: function helper(s,g) { return obfuscate(s); } the jrereplace is defined as: