I don't know of any regex engine that will perform numeric operations.
Possibly perl. The CF regex engine is VERY cutdown. The best workaround I
can think of is to use refind with subexpressions and then loop through the
result array.
Blair
On 12/14/06, Matthew [EMAIL PROTECTED] wrote:
Hi
OK.. Please no messages saying ooh.. evaluate() bad.., but
cfscript
str_text = This works in 90% of all operations;
str_text = replace(str_text, ##, , all);
str_text = ReReplace(str_text, ([0-9]*)%,##\1-25##%,all);
result = evaluate(DE(str_text));
/cfscript
cfdump var=#result#
Cool!
On 12/14/06, Joel Cass [EMAIL PROTECTED] wrote:
OK.. Please no messages saying ooh.. evaluate() bad.., but
cfscript
str_text = This works in 90% of all operations;
str_text = replace(str_text, ##, , all);
str_text = ReReplace(str_text, ([0-9]*)%,##\1-25##%,all);
result =
Someone is a very cleaver cookie!!!
Although what is this line for?: str_text = replace(str_text, ##,
, all);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email
-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]
Behalf Of Matthew
Sent: Thursday, 14 December 2006 1:55 PM
To: cfaussie
Subject: [cfaussie] Re: Regular expressions - backreference as a number
Someone is a very cleaver cookie!!!
Although what is this line for?: str_text = replace(str_text