drmaves wrote:
> I have a template that displays a variable that contains
a string like this:
>
> <cfoutput>
> #content#
> </cfoutput>
>
> The variable 'content' is stored in a database table and
contains text with
> varables within it, like this:
>
> My content is here with a variable with in it like this
#keyword#.
Pseudocode, not tested:
do{
r = reFindNoCase("##[a-z0-9]*##", content, 1, true);
found = r.pos[1] gt 0;
if( found ) {
varName = Mid(content, r.pos[1], r.len[1]);
replaceNoCase(content, "##" & varName & "##",
variables[varName],
"ALL");
}
}while(found)
This assumes that all your variables are in Variables (and
not in
Session, Application, etc).
--
Mack