I'm curious what exactly you're trying to do, which might reveal a better
way of doing it.

Are you trying to replace variable placeholders so that you can evaluate the
code chunk?


On Mon, Feb 21, 2011 at 1:24 PM, Richard White <[email protected]> wrote:

>
> thanks dain, this has made me realise i really need to know more about
> regular expressions, as i could have another string that has now() instead
> of the parenthesis:
>
> <cfset str = '({name1}/365.25)*(datediff(now(),{name3}))' />
>
> have played around with the expression you suggested to pick up anything
> between the datediff() as then i can run the rematch from example above,
> although my attempts have all failed so far...
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342472
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to