regular expression - callback function

2007-02-12 Thread Peter Boughton
Hello. Does anyone know how I can implement a regex callback? ie: I have the following code: cfset Content = REReplace(Content,'''cfif \(Var\(([^,]+),([^]+))\) ([A-Z]+) ([^]+\)', '''cfif (Var(\1),\2)) \3 \4', all)/ And I need to run a function on \1, \3 and \4 as they are replaced. I'm fairly

RE: regular expression - callback function

2007-02-12 Thread Ben Nadel
- From: Peter Boughton [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 10:41 AM To: CF-Talk Subject: regular expression - callback function Hello. Does anyone know how I can implement a regex callback? ie: I have the following code: cfset Content = REReplace(Content,'''cfif \(Var

Re: regular expression - callback function

2007-02-12 Thread Peter Boughton
. . Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Peter Boughton [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 10:41 AM To: CF-Talk Subject: regular expression

RE: regular expression - callback function

2007-02-12 Thread Ben Nadel
: Peter Boughton [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 12:21 PM To: CF-Talk Subject: Re: regular expression - callback function Thanks Ben, that's great! :D I did solve my main problem another way, but I should be able to get more elegant code with your method, so I'll have