Why not just use XMLFormat() ?
Ung, Seng wrote:
btw: the outcome is a XML format
-----Original Message-----
From: Ung, Seng
Sent: Wednesday, August 24, 2005 10:02 AM
To: [email protected]
Subject: RE: [CFCDev] regEx help
Barney:
here what I got
<cfset string_1=REReplace("The Sound. of A & M's","&","&s;","ALL")>
<cfset string_2=REReplace(string_1,"'","'","ALL")>
What I am hoping for is a 1 liner will detected & ' and translate it to &s;
'
Can it be done?
-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 9:56 AM
To: [email protected]
Subject: Re: [CFCDev] regEx help
You don't need a regex, just a pair of simple replaces will do it.
And actually, htmlEditFormat() would do it just as easily, and catch
<, >, and " too, though I don't think it'll do the apostrophe.
cheers,
barneyb
On 8/24/05, Ung, Seng <[EMAIL PROTECTED]> wrote:
Help
string="The Sound of A & D's"
how does regex works to ReReplace the string to the following?
string="The Sound of A &s; D's"
thanks
Seng
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]