You could try wrapping the replacement string in an evaluate().

Blair

On 2/6/06, Carl Vanderpal <[EMAIL PROTECTED]> wrote:
mmm am I missing something?

it just outputs #SESSION[User].FirstName# to the page and does not take from the session structure and output the actual name

for example if I just did <cfoutput>#SESSION[User].FirstName#</cfoutput> it would output eg 'Carl'

<cfsavecontent variable="x">
  #ParagraphFormat(getMyText.TextBlock)#
</cfsavecontent>
           
<cfoutput>#REReplace(x, "~([^~]+)~", "##SESSION[User].Member_\1##","ALL")#</cfoutput>

this outputs 'I am #SESSION[User].FirstName#' instead of 'I am Carl'


On 2/6/06, Robin Hilliard < [EMAIL PROTECTED]> wrote:


<snip>

RE Subexpressions are your friend (Assume you then save this as
a .cfm then include it):

<cfsavecontent variable="x">
~FirstName~ (replace with) SESSION[User].FirstName
~LastName~ (replace with) SESSION[User].LastName

~City~ (replace with) SESSION[User].City
~Country~ (replace with) SESSION[User].Country
</cfsavecontent>

<cfoutput><pre>#REReplace(x, "~([^~]+)~", "##SESSION[User].\1##",
"ALL")#</pre></cfoutput>

______________

Robin Hilliard
Director - RocketBoots Pty Ltd
Professional Services for Macromedia Technologies
http://www.rocketboots.com.au

For schedule/availability call Pamela Higgins:
w    +61 7 5451 0362
m    +61 419 677 151
e    [EMAIL PROTECTED]

or Direct:
m    +61 418 414 341
f    +61 2 9798 0070
e     [EMAIL PROTECTED]

  *** Register for WebDU http://www.mxdu.com 2-3 March 2006 ***







--
====================================

Postal: Po Box 3462 Dural, NSW 2158
Email: mailto:[EMAIL PROTECTED]
FireFly Internet Phone: 80011777

Reply via email to