Heh... Yeah, well... what can I say, I like to use XML tools for XML.
:) Except I generate XML with cfsavecontent... but I always use XML
tools to read it. :)

Your example needs a couple extra spaces tho, otherwise she'll get

from555-1212to555-5000

> Isaac you crazy guy!

> #ReplaceList(myString,
> "<token1>,</token1><token2>,</token2>", "Phone
> number changed from,to,")#

> -----Original Message-----
> From: S.Isaac Dealey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 15 September 2005 2:46 a.m.
> To: CF-Talk
> Subject: Re: Replace String

> Hi Becky,

> What you're looking at is XML and it should be reasonably
> easy to
> convert this into your desired output using CF's native
> XML tools.
> Give this a shot:

> <cfxml variable="myxml"><xml>#mystring#</xml></cfxml>

> <cfoutput>
>       Phone number changed from
>       #myxml.xml.token1.xmlText# to
>       #myxml.xml.token2.xmlText#
> </cfoutput>

> I could have given you an XSL template to translate the
> tokens, but
> that's a little more involved -- I figured this would be
> shorter and
> easier to follow in this case.


s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218353
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to